revise style
This commit is contained in:
parent
b42425ca56
commit
ce2fb391be
3 changed files with 5 additions and 5 deletions
|
|
@ -11,7 +11,7 @@ Variants {
|
||||||
delegate: WlrLayershell {
|
delegate: WlrLayershell {
|
||||||
id: root
|
id: root
|
||||||
required property var modelData
|
required property var modelData
|
||||||
property double moduleHeight: implicitHeight / 1.5
|
property double moduleHeight: implicitHeight - 12
|
||||||
screen: modelData
|
screen: modelData
|
||||||
anchors {
|
anchors {
|
||||||
top: true
|
top: true
|
||||||
|
|
|
||||||
|
|
@ -29,16 +29,16 @@ Rectangle {
|
||||||
delegate: Rectangle {
|
delegate: Rectangle {
|
||||||
id: wsWrapper
|
id: wsWrapper
|
||||||
implicitHeight: root.moduleHeight
|
implicitHeight: root.moduleHeight
|
||||||
implicitWidth: modelData.active ? 48 : 24
|
implicitWidth: 16
|
||||||
parent: wsLayout
|
parent: wsLayout
|
||||||
color: modelData.active ? Colors.base0D : 'transparent'
|
color: 'transparent'
|
||||||
radius: Config.rounding
|
radius: Config.rounding
|
||||||
visible: modelData.monitor == root.hyprBarScreen
|
visible: modelData.monitor == root.hyprBarScreen
|
||||||
required property var modelData
|
required property var modelData
|
||||||
StyledText {
|
StyledText {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: wsWrapper.modelData.id
|
text: wsWrapper.modelData.id
|
||||||
color: parent.modelData.active ? Colors.base00 : Colors.base07
|
color: parent.modelData.active ? Colors.base07 : Colors.base04
|
||||||
}
|
}
|
||||||
Behavior on implicitWidth {
|
Behavior on implicitWidth {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ Text {
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
font.variableAxes: {
|
font.variableAxes: {
|
||||||
"FILL": fill ? 1 : 0,
|
"FILL": fill ? 1 : 0,
|
||||||
"opsz": Config.iconSize,
|
"opsz": 24,
|
||||||
"wght": 400,
|
"wght": 400,
|
||||||
"GRAD": 24
|
"GRAD": 24
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue