forked from Shinonome/alt-illogical-impulse
ac6d3adeb9
BREAKING CHANGE: Remove external dots-hyprland dependency - Imported all essential configs from dots-hyprland/installer-replication - Added complete configs/ directory with: - hypr/ - Hyprland configuration - quickshell/ - Quickshell widgets and config - applications/ - Application configurations - scripts/ - Utility scripts - matugen/ - Material You theming - Updated flake.nix to use local ./configs instead of external repo - Simplified update-flake script (removed external repo management) - Updated README to reflect self-contained architecture - All builds pass with local configurations Benefits: - No external repository dependencies - Faster builds (no network dependencies) - Version controlled configs in single repo - Easier maintenance and development - Complete installer replication in one place
38 lines
927 B
QML
38 lines
927 B
QML
import QtQuick
|
|
import Quickshell
|
|
import Quickshell.Widgets
|
|
import Qt5Compat.GraphicalEffects
|
|
|
|
Item {
|
|
id: root
|
|
|
|
property bool colorize: false
|
|
property color color
|
|
property string source: ""
|
|
property string iconFolder: Qt.resolvedUrl(Quickshell.shellPath("assets/icons")) // The folder to check first
|
|
width: 30
|
|
height: 30
|
|
|
|
IconImage {
|
|
id: iconImage
|
|
anchors.fill: parent
|
|
source: {
|
|
const fullPathWhenSourceIsIconName = iconFolder + "/" + root.source;
|
|
if (iconFolder && fullPathWhenSourceIsIconName) {
|
|
return fullPathWhenSourceIsIconName
|
|
}
|
|
return root.source
|
|
}
|
|
implicitSize: root.height
|
|
}
|
|
|
|
Loader {
|
|
active: root.colorize
|
|
anchors.fill: iconImage
|
|
sourceComponent: ColorOverlay {
|
|
source: iconImage
|
|
color: root.color
|
|
}
|
|
}
|
|
}
|