wallpaper selector: adjust size and item colors, fix address bar inconsistency

This commit is contained in:
end-4
2025-08-26 13:58:29 +07:00
parent b2d14ca101
commit eb2c9f2fe1
3 changed files with 8 additions and 5 deletions
@@ -343,8 +343,8 @@ Singleton {
property real baseVerticalBarWidth: 46 property real baseVerticalBarWidth: 46
property real verticalBarWidth: Config.options.bar.cornerStyle === 1 ? property real verticalBarWidth: Config.options.bar.cornerStyle === 1 ?
(baseVerticalBarWidth + root.sizes.hyprlandGapsOut * 2) : baseVerticalBarWidth (baseVerticalBarWidth + root.sizes.hyprlandGapsOut * 2) : baseVerticalBarWidth
property real wallpaperSelectorWidth: 1000 property real wallpaperSelectorWidth: 1200
property real wallpaperSelectorHeight: 580 property real wallpaperSelectorHeight: 690
} }
syntaxHighlightingTheme: root.m3colors.darkmode ? "Monokai" : "ayu Light" syntaxHighlightingTheme: root.m3colors.darkmode ? "Monokai" : "ayu Light"
@@ -8,7 +8,10 @@ import qs.modules.common.functions
Rectangle { Rectangle {
id: root id: root
required property var directory required property var directory
property bool showBreadcrumb: true // TODO: make this work property bool showBreadcrumb: true
onShowBreadcrumbChanged: {
addressInput.text = root.directory;
}
signal navigateToDirectory(string path) signal navigateToDirectory(string path)
@@ -226,8 +226,8 @@ Item {
fileModelData: modelData fileModelData: modelData
width: grid.cellWidth width: grid.cellWidth
height: grid.cellHeight height: grid.cellHeight
colBackground: (fileModelData.filePath === Config.options.background.wallpaperPath) ? Appearance.colors.colPrimary : (index === grid?.currentIndex || containsMouse) ? Appearance.colors.colPrimaryContainer : ColorUtils.transparentize(Appearance.colors.colPrimaryContainer) colBackground: (index === grid?.currentIndex || containsMouse) ? Appearance.colors.colPrimary : (fileModelData.filePath === Config.options.background.wallpaperPath) ? Appearance.colors.colSecondaryContainer : ColorUtils.transparentize(Appearance.colors.colPrimaryContainer)
colText: (fileModelData.filePath === Config.options.background.wallpaperPath) ? Appearance.colors.colOnPrimary : (index === grid.currentIndex || containsMouse) ? Appearance.colors.colPrimary : Appearance.colors.colOnLayer0 colText: (index === grid.currentIndex || containsMouse) ? Appearance.colors.colOnPrimary : (fileModelData.filePath === Config.options.background.wallpaperPath) ? Appearance.colors.colOnSecondaryContainer : Appearance.colors.colOnLayer0
onEntered: { onEntered: {
grid.currentIndex = index; grid.currentIndex = index;