forked from Shinonome/dots-hyprland
changes from main
This commit is contained in:
@@ -66,16 +66,9 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: Config
|
||||
function onReadyChanged() {
|
||||
categoryFileView.path = Directories.generatedWallpaperCategoryPath
|
||||
}
|
||||
}
|
||||
|
||||
FileView {
|
||||
id: categoryFileView
|
||||
path: ""
|
||||
path: Config.ready ? Directories.generatedWallpaperCategoryPath : ""
|
||||
watchChanges: true
|
||||
onFileChanged: reload()
|
||||
onLoaded: {
|
||||
@@ -85,7 +78,7 @@ Item {
|
||||
|
||||
property bool useSineCookie: Config.options.background.widgets.clock.cookie.useSineCookie
|
||||
StyledDropShadow {
|
||||
target: useSineCookie ? sineCookieLoader : roundedPolygonCookieLoader
|
||||
target: root.useSineCookie ? sineCookieLoader : roundedPolygonCookieLoader
|
||||
|
||||
RotationAnimation on rotation {
|
||||
running: Config.options.background.widgets.clock.cookie.constantlyRotate
|
||||
@@ -100,7 +93,7 @@ Item {
|
||||
id: sineCookieLoader
|
||||
z: 0
|
||||
visible: false // The DropShadow already draws it
|
||||
active: useSineCookie
|
||||
active: root.useSineCookie
|
||||
sourceComponent: SineCookie {
|
||||
implicitSize: root.implicitSize
|
||||
sides: Config.options.background.widgets.clock.cookie.sides
|
||||
@@ -111,7 +104,7 @@ Item {
|
||||
id: roundedPolygonCookieLoader
|
||||
z: 0
|
||||
visible: false // The DropShadow already draws it
|
||||
active: !useSineCookie
|
||||
active: !root.useSineCookie
|
||||
sourceComponent: MaterialCookie {
|
||||
implicitSize: root.implicitSize
|
||||
sides: Config.options.background.widgets.clock.cookie.sides
|
||||
|
||||
@@ -95,6 +95,25 @@ Item { // Wrapper
|
||||
root.focusFirstItem();
|
||||
}
|
||||
}
|
||||
|
||||
// Ctrl+N / Ctrl+P navigation
|
||||
if (event.modifiers & Qt.ControlModifier) {
|
||||
if (event.key === Qt.Key_N) {
|
||||
if (appResults.visible && appResults.count > 0) {
|
||||
// Wrap around the list rather than the default arrow key behaviour
|
||||
appResults.currentIndex = (appResults.currentIndex + 1) % appResults.count;
|
||||
event.accepted = true;
|
||||
return;
|
||||
}
|
||||
} else if (event.key === Qt.Key_P) {
|
||||
if (appResults.visible && appResults.count > 0) {
|
||||
// Wrap around too
|
||||
appResults.currentIndex = (appResults.count + appResults.currentIndex - 1) % appResults.count;
|
||||
event.accepted = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
StyledRectangularShadow {
|
||||
|
||||
@@ -246,8 +246,8 @@ ContentPage {
|
||||
value: Config.options.background.widgets.clock.digital.font.size
|
||||
usePercentTooltip: false
|
||||
buttonIcon: "format_size"
|
||||
from: 70
|
||||
to: 150
|
||||
from: 50
|
||||
to: 700
|
||||
stopIndicatorValues: [90]
|
||||
onValueChanged: {
|
||||
Config.options.background.widgets.clock.digital.font.size = value;
|
||||
|
||||
Reference in New Issue
Block a user