Compare commits
No commits in common. "6b87dc80069c2fb3a257543029ac222fa62d4936" and "c82163304cd4b18d226aa932887751176180e667" have entirely different histories.
6b87dc8006
...
c82163304c
2 changed files with 15 additions and 14 deletions
|
|
@ -10,8 +10,6 @@ RoundButton {
|
|||
source: "../assets/lucide.woff"
|
||||
}
|
||||
|
||||
property alias border: rect.border
|
||||
|
||||
font.family: loader.font.family
|
||||
font.pixelSize: 16
|
||||
radius: 8
|
||||
|
|
@ -33,14 +31,6 @@ RoundButton {
|
|||
}
|
||||
|
||||
background: Rectangle {
|
||||
id: rect
|
||||
border.color: control.hovered ? Theme.palette.primary : Theme.palette.base100
|
||||
Behavior on border.color {
|
||||
ColorAnimation {
|
||||
duration: 100
|
||||
}
|
||||
}
|
||||
border.width: 2
|
||||
color: control.hovered ? Theme.palette.primary : Theme.palette.base100
|
||||
Behavior on color {
|
||||
ColorAnimation {
|
||||
|
|
|
|||
|
|
@ -1,15 +1,26 @@
|
|||
import qs.components
|
||||
import qs.config
|
||||
import qs.constants
|
||||
import qs.services
|
||||
import qs.widgets
|
||||
|
||||
StyledIconButton {
|
||||
StyledButton {
|
||||
id: root
|
||||
|
||||
border.color: Caffeine.enabled ? Theme.palette.secondary : root.hovered ? Theme.palette.primary : Theme.palette.base100
|
||||
text: Icons.coffee
|
||||
border.color: Caffeine.enabled ? Theme.palette.secondary : 'transparent'
|
||||
border.width: 2
|
||||
|
||||
onClicked: {
|
||||
Caffeine.toggle();
|
||||
}
|
||||
|
||||
content: StyledText {
|
||||
id: text
|
||||
|
||||
font.family: Theme.lucide.font.family
|
||||
font.pixelSize: Dimensions.caffeine.fontSize
|
||||
font.bold: true
|
||||
text: Icons.coffee
|
||||
|
||||
color: root.containsMouse ? Theme.palette.base300 : Theme.palette.basecontent
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue