ws style change
This commit is contained in:
parent
e48edaae42
commit
f52d54175a
@ -35,7 +35,7 @@ Variants {
|
|||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: leftStuff
|
id: leftStuff
|
||||||
anchors.margins: Settings.config.barHeight / 4
|
anchors.margins: Settings.config.floating ? 0 : Settings.config.barHeight / 4
|
||||||
spacing: 10
|
spacing: 10
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|||||||
@ -17,7 +17,7 @@ Rectangle {
|
|||||||
Row {
|
Row {
|
||||||
id: workspaceRow
|
id: workspaceRow
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
spacing: 5 // Slightly increase spacing between workspace buttons
|
spacing: 0 // Slightly increase spacing between workspace buttons
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
id: wsRepeater
|
id: wsRepeater
|
||||||
@ -38,8 +38,8 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
required property var modelData
|
required property var modelData
|
||||||
width: !modelData.focused ? 20 : 40
|
width: Settings.config.barHeight - 5
|
||||||
height: isOnMon ? Settings.config.barHeight - Settings.config.barHeight / 2 : 0
|
height: Settings.config.barHeight - 10
|
||||||
color: modelData.focused ? Colors.primaryContainer : "transparent"
|
color: modelData.focused ? Colors.primaryContainer : "transparent"
|
||||||
Behavior on width {
|
Behavior on width {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
|
|||||||
@ -1,9 +1,10 @@
|
|||||||
import QtQuick
|
import QtQuick
|
||||||
import qs
|
import qs
|
||||||
|
import qs.settings
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
color: Colors.onSurfaceColor
|
|
||||||
id: root
|
id: root
|
||||||
|
color: Colors.onSurfaceColor
|
||||||
property real iconSize: 16
|
property real iconSize: 16
|
||||||
property real fill: 1
|
property real fill: 1
|
||||||
property real truncatedFill: fill.toFixed(1) // Reduce memory consumption spikes from constant font remapping
|
property real truncatedFill: fill.toFixed(1) // Reduce memory consumption spikes from constant font remapping
|
||||||
@ -11,7 +12,7 @@ Text {
|
|||||||
font {
|
font {
|
||||||
hintingPreference: Font.PreferNoHinting
|
hintingPreference: Font.PreferNoHinting
|
||||||
family: "Material Symbols Rounded"
|
family: "Material Symbols Rounded"
|
||||||
pixelSize: iconSize
|
pixelSize: Settings.config.fontSize
|
||||||
weight: Font.Normal + (Font.DemiBold - Font.Normal) * truncatedFill
|
weight: Font.Normal + (Font.DemiBold - Font.Normal) * truncatedFill
|
||||||
variableAxes: {
|
variableAxes: {
|
||||||
"FILL": truncatedFill,
|
"FILL": truncatedFill,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user