update styledbutton to extend button
This commit is contained in:
parent
160cd3c1d5
commit
c983cf206b
12 changed files with 74 additions and 134 deletions
|
|
@ -16,7 +16,7 @@ StyledButton {
|
|||
root.showTemp = !root.showTemp;
|
||||
}
|
||||
|
||||
content: RowLayout {
|
||||
contentItem: RowLayout {
|
||||
id: row
|
||||
Ref {
|
||||
service: SystemInfo
|
||||
|
|
@ -28,14 +28,15 @@ StyledButton {
|
|||
font.pixelSize: Dimensions.gpu.iconSize
|
||||
font.bold: true
|
||||
text: Icons.gpu
|
||||
color: root.hovered ? Theme.palette.primarycontent : Theme.palette.basecontent
|
||||
}
|
||||
|
||||
StyledText {
|
||||
id: text
|
||||
|
||||
font.pixelSize: Dimensions.gpu.fontSize
|
||||
|
||||
text: ` ${(SystemInfo.gpuPerc * 100).toFixed()}%`
|
||||
color: root.hovered ? Theme.palette.primarycontent : Theme.palette.basecontent
|
||||
|
||||
states: [
|
||||
State {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue