adjust theme on components
This commit is contained in:
parent
a44b6f5e44
commit
f7e8fb7720
13 changed files with 42 additions and 54 deletions
|
|
@ -8,20 +8,17 @@ Button {
|
||||||
property alias radius: rectangle.radius
|
property alias radius: rectangle.radius
|
||||||
|
|
||||||
font.pixelSize: 14
|
font.pixelSize: 14
|
||||||
padding: 6
|
verticalPadding: 6
|
||||||
|
horizontalPadding: 8
|
||||||
|
|
||||||
palette.button: hovered ? Theme.palette.primary : Theme.palette.base100
|
palette.button: hovered ? Theme.palette.primary : Theme.palette.base200
|
||||||
Behavior on palette.button {
|
ColorAnimation on palette.button {
|
||||||
ColorAnimation {
|
|
||||||
duration: 100
|
duration: 100
|
||||||
}
|
}
|
||||||
}
|
|
||||||
palette.buttonText: hoverEnabled && hovered ? Theme.palette.primarycontent : Theme.palette.basecontent
|
palette.buttonText: hoverEnabled && hovered ? Theme.palette.primarycontent : Theme.palette.basecontent
|
||||||
Behavior on palette.buttonText {
|
ColorAnimation on palette.buttonText {
|
||||||
ColorAnimation {
|
|
||||||
duration: 100
|
duration: 100
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
wheelEnabled: true
|
wheelEnabled: true
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,6 @@ Drawer {
|
||||||
topRightRadius = 8;
|
topRightRadius = 8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
color: Theme.palette.base200
|
color: Theme.palette.base100
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,9 @@ RoundButton {
|
||||||
property int rotation: 0
|
property int rotation: 0
|
||||||
|
|
||||||
font.family: loader.font.family
|
font.family: loader.font.family
|
||||||
font.pixelSize: 18
|
font.pixelSize: 19
|
||||||
radius: 8
|
radius: 8
|
||||||
padding: 6
|
padding: 8
|
||||||
|
|
||||||
HoverHandler {
|
HoverHandler {
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
|
|
@ -28,35 +28,27 @@ RoundButton {
|
||||||
font: control.font
|
font: control.font
|
||||||
text: control.text
|
text: control.text
|
||||||
color: control.color
|
color: control.color
|
||||||
Behavior on color {
|
ColorAnimation on color {
|
||||||
ColorAnimation {
|
|
||||||
duration: 100
|
duration: 100
|
||||||
}
|
}
|
||||||
}
|
|
||||||
rotation: control.rotation
|
rotation: control.rotation
|
||||||
Behavior on rotation {
|
RotationAnimation on rotation {
|
||||||
RotationAnimation {
|
|
||||||
duration: 200
|
duration: 200
|
||||||
easing.type: Easing.InOutCubic
|
easing.type: Easing.InOutCubic
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
id: rect
|
id: rect
|
||||||
border.color: control.hovered ? Theme.palette.primary : Theme.palette.base100
|
border.color: control.hovered ? Theme.palette.base300 : Theme.palette.base200
|
||||||
Behavior on border.color {
|
ColorAnimation on border.color {
|
||||||
ColorAnimation {
|
|
||||||
duration: 100
|
duration: 100
|
||||||
}
|
}
|
||||||
}
|
border.width: 0
|
||||||
border.width: 2
|
color: control.hovered ? Theme.palette.primary : Theme.palette.base200
|
||||||
color: control.hovered ? Theme.palette.primary : Theme.palette.base100
|
ColorAnimation on color {
|
||||||
Behavior on color {
|
|
||||||
ColorAnimation {
|
|
||||||
duration: 100
|
duration: 100
|
||||||
}
|
}
|
||||||
}
|
|
||||||
radius: control.radius
|
radius: control.radius
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,9 @@ WrapperRectangle {
|
||||||
id: root
|
id: root
|
||||||
margin: 8
|
margin: 8
|
||||||
radius: 8
|
radius: 8
|
||||||
color: Theme.palette.base100
|
color: Theme.palette.base200
|
||||||
Behavior on color {
|
ColorAnimation on color {
|
||||||
ColorAnimation {
|
|
||||||
duration: 200
|
duration: 200
|
||||||
easing.type: Easing.InOutQuad
|
easing.type: Easing.InOutQuad
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
import qs.config
|
import qs.config
|
||||||
|
import QtQuick
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
|
|
||||||
TextField {
|
TextField {
|
||||||
|
|
||||||
color: Theme.palette.basecontent
|
color: Theme.palette.basecontent
|
||||||
background: null
|
background: Item {}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,6 @@ ToolTip {
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
radius: 8
|
radius: 8
|
||||||
color: Theme.palette.base200
|
color: Theme.palette.base100
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,9 @@ import Quickshell.Widgets
|
||||||
|
|
||||||
WrapperRectangle {
|
WrapperRectangle {
|
||||||
radius: 8
|
radius: 8
|
||||||
color: Theme.palette.base300
|
color: Theme.palette.base100
|
||||||
Behavior on color {
|
ColorAnimation on color {
|
||||||
ColorAnimation {
|
|
||||||
duration: 200
|
duration: 200
|
||||||
easing.type: Easing.InOutQuad
|
easing.type: Easing.InOutQuad
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -32,11 +32,11 @@ PanelWindow {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: background
|
id: background
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: Theme.palette.base300
|
color: Theme.palette.base100
|
||||||
radius: Dimensions.radius
|
radius: Dimensions.radius
|
||||||
|
|
||||||
border {
|
border {
|
||||||
color: Theme.palette.base100
|
color: Theme.palette.base200
|
||||||
width: Dimensions.bar.border
|
width: Dimensions.bar.border
|
||||||
pixelAligned: true
|
pixelAligned: true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,8 @@ import qs.services
|
||||||
StyledIconButton {
|
StyledIconButton {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
border.color: Caffeine.enabled ? Theme.palette.secondary : root.hovered ? Theme.palette.primary : Theme.palette.base100
|
border.width: 2
|
||||||
|
border.color: Caffeine.enabled ? Theme.palette.secondary : root.hovered ? Theme.palette.primary : Theme.palette.base300
|
||||||
text: Icons.coffee
|
text: Icons.coffee
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
|
|
||||||
|
|
@ -4,13 +4,14 @@ import qs.components
|
||||||
import qs.services
|
import qs.services
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
import Quickshell.Widgets
|
||||||
|
|
||||||
StyledDrawer {
|
StyledDrawer {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
visible: Visibility.dashboard
|
visible: Visibility.dashboard
|
||||||
|
|
||||||
StyledWrapperRectangle {
|
WrapperItem {
|
||||||
margin: 32
|
margin: 32
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
spacing: 8
|
spacing: 8
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ import "items"
|
||||||
import "services"
|
import "services"
|
||||||
import qs.components
|
import qs.components
|
||||||
import qs.config
|
import qs.config
|
||||||
import qs.widgets
|
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
pragma ComponentBehavior: Bound
|
pragma ComponentBehavior: Bound
|
||||||
|
|
||||||
import "services"
|
import "services"
|
||||||
|
import qs.config
|
||||||
import qs.components
|
import qs.components
|
||||||
import qs.constants
|
import qs.constants
|
||||||
import qs.services
|
import qs.services
|
||||||
|
|
@ -47,6 +48,8 @@ StyledWindow {
|
||||||
Layout.alignment: Qt.AlignTop
|
Layout.alignment: Qt.AlignTop
|
||||||
margin: 4
|
margin: 4
|
||||||
|
|
||||||
|
color: Theme.palette.base200
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
LucideIcon {
|
LucideIcon {
|
||||||
id: icon
|
id: icon
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ pragma ComponentBehavior: Bound
|
||||||
import qs.components
|
import qs.components
|
||||||
import qs.config
|
import qs.config
|
||||||
import qs.services
|
import qs.services
|
||||||
import qs.widgets
|
|
||||||
import Quickshell.Hyprland
|
import Quickshell.Hyprland
|
||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
import Quickshell.Wayland
|
import Quickshell.Wayland
|
||||||
|
|
@ -28,7 +27,6 @@ StyledWindow {
|
||||||
StyledWrapperRectangle {
|
StyledWrapperRectangle {
|
||||||
id: rect
|
id: rect
|
||||||
|
|
||||||
color: Theme.palette.base300
|
|
||||||
margin: 14
|
margin: 14
|
||||||
radius: 8
|
radius: 8
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue