move theme to styling
This commit is contained in:
parent
467c9bc0e3
commit
4375f6e13d
36 changed files with 68 additions and 67 deletions
|
|
@ -15,12 +15,12 @@ StyledButton {
|
|||
Layout.alignment: Qt.AlignVCenter
|
||||
color: {
|
||||
if (root.isCritical) {
|
||||
return Theme.palette.error;
|
||||
return Styling.theme.error;
|
||||
}
|
||||
if (root.hovered) {
|
||||
return Theme.palette.primarycontent;
|
||||
return Styling.theme.primarycontent;
|
||||
}
|
||||
return Theme.palette.basecontent;
|
||||
return Styling.theme.basecontent;
|
||||
}
|
||||
font.pixelSize: 16
|
||||
text: {
|
||||
|
|
@ -44,12 +44,12 @@ StyledButton {
|
|||
Layout.alignment: Qt.AlignVCenter
|
||||
color: {
|
||||
if (root.isCritical) {
|
||||
return Theme.palette.error;
|
||||
return Styling.theme.error;
|
||||
}
|
||||
if (root.hovered) {
|
||||
return Theme.palette.primarycontent;
|
||||
return Styling.theme.primarycontent;
|
||||
}
|
||||
return Theme.palette.basecontent;
|
||||
return Styling.theme.basecontent;
|
||||
}
|
||||
text: `${(root.laptopBattery?.percentage.toFixed(2) * 100)}%`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue