forked from Shinonome/dots-hyprland
sidebar progress
This commit is contained in:
@@ -114,10 +114,14 @@ Singleton {
|
||||
property color colOnLayer2: m3colors.m3onSurface;
|
||||
property color colLayer3: mix(m3colors.m3surfaceContainerHigh, m3colors.m3onSurface, 0.96);
|
||||
property color colOnLayer3: m3colors.m3onSurface;
|
||||
property color colLayer1Hover: mix(colLayer1, colOnLayer1, 0.85);
|
||||
property color colLayer1Active: mix(colLayer1, colOnLayer1, 0.70);
|
||||
property color colLayer2Hover: mix(colLayer2, colOnLayer2, 0.90);
|
||||
property color colLayer2Active: mix(colLayer2, colOnLayer2, 0.80);
|
||||
property color colLayer3Hover: mix(colLayer3, colOnLayer3, 0.90);
|
||||
property color colLayer3Active: mix(colLayer3, colOnLayer3, 0.80);
|
||||
property color colPrimaryHover: mix(m3colors.m3primary, colLayer1Hover, 0.7)
|
||||
property color colPrimaryActive: mix(m3colors.m3primary, colLayer1Active, 0.4)
|
||||
}
|
||||
|
||||
rounding: QtObject {
|
||||
|
||||
@@ -20,4 +20,8 @@ Singleton {
|
||||
property int updateInterval: 3000
|
||||
}
|
||||
|
||||
property QtObject hacks: QtObject {
|
||||
property int arbitraryRaceConditionDelay: 10
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
import QtQuick
|
||||
import Qt.labs.platform
|
||||
import Quickshell
|
||||
import Quickshell.Widgets
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
||||
property string source: ""
|
||||
property string iconFolder: StandardPaths.standardLocations(StandardPaths.ConfigLocation)[0] + "/quickshell/assets/icons" // The folder to check first
|
||||
width: 30
|
||||
height: 30
|
||||
|
||||
IconImage {
|
||||
id: iconImage
|
||||
anchors.fill: parent
|
||||
source: {
|
||||
if (iconFolder && iconFolder + "/" + root.source) {
|
||||
return iconFolder + "/" + root.source
|
||||
}
|
||||
return root.source
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user