Compare commits

...

3 commits

Author SHA1 Message Date
Benjamin Palko
b84b29ed7f resize workspace icons 2025-07-20 09:23:43 -04:00
Benjamin Palko
6653588589 clock size relative to text 2025-07-20 09:23:24 -04:00
Benjamin Palko
4af55f8117 add system logo 2025-07-20 09:23:24 -04:00
5 changed files with 17 additions and 7 deletions

View file

@ -15,7 +15,7 @@ Singleton {
component Bar: QtObject { component Bar: QtObject {
id: bar id: bar
property int spacing: 6 property int spacing: 8
property int border: 2 property int border: 2
property int height: 50 property int height: 50
property int verticalMargins: 4 property int verticalMargins: 4
@ -28,7 +28,6 @@ Singleton {
id: clock id: clock
property int fontSize: 14 property int fontSize: 14
property int width: 130
property int height: 30 property int height: 30
property int horizontalPadding: 8 property int horizontalPadding: 8
property int verticalPadding: 6 property int verticalPadding: 6
@ -38,6 +37,7 @@ Singleton {
id: workspace id: workspace
property int spacing: 5 property int spacing: 5
property int iconSize: 16
property int width: 30 property int width: 30
property int height: 30 property int height: 30
property int verticalPadding: 6 property int verticalPadding: 6

View file

@ -49,6 +49,11 @@ Scope {
spacing: Dimensions.bar.spacing spacing: Dimensions.bar.spacing
SystemLogo {
anchors.verticalCenter: parent.verticalCenter
implicitSize: 22
}
Workspaces { Workspaces {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }

View file

@ -7,12 +7,11 @@ import "../../../config/"
Item { Item {
id: root id: root
implicitWidth: Dimensions.clock.width implicitWidth: childrenRect.width
implicitHeight: Dimensions.clock.height implicitHeight: Dimensions.clock.height
StyledLabel { StyledLabel {
anchors.fill: parent anchors.fill: parent
anchors.centerIn: parent
} }
StyledText { StyledText {

View file

@ -0,0 +1,6 @@
import Quickshell
import Quickshell.Widgets
IconImage {
source: Quickshell.iconPath("archlinux-logo")
}

View file

@ -35,7 +35,7 @@ Item {
reversible: true reversible: true
ColorAnimation { ColorAnimation {
properties: "color" properties: "color"
duration: 300 duration: 200
easing.type: Easing.InOutCubic easing.type: Easing.InOutCubic
} }
} }
@ -66,11 +66,11 @@ Item {
reversible: true reversible: true
ParallelAnimation { ParallelAnimation {
RotationAnimation { RotationAnimation {
duration: 300 duration: 200
easing.type: Easing.InOutCubic easing.type: Easing.InOutCubic
} }
ColorAnimation { ColorAnimation {
duration: 300 duration: 200
easing.type: Easing.OutCubic easing.type: Easing.OutCubic
} }
} }