mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
autofmt
This commit is contained in:
@@ -4,6 +4,7 @@ import QtQuick.Layouts
|
||||
import Quickshell
|
||||
import Quickshell.Services.Pam
|
||||
import Quickshell.Wayland
|
||||
import "../../Helpers/Keybinds.js" as Keybinds
|
||||
import qs.Commons
|
||||
import qs.Services.Compositor
|
||||
import qs.Services.Hardware
|
||||
@@ -11,7 +12,6 @@ import qs.Services.Keyboard
|
||||
import qs.Services.Media
|
||||
import qs.Services.UI
|
||||
import qs.Widgets
|
||||
import "../../Helpers/Keybinds.js" as Keybinds
|
||||
|
||||
Loader {
|
||||
id: root
|
||||
|
||||
@@ -573,5 +573,4 @@ PanelWindow {
|
||||
enabled: root.isPanelOpen && (PanelService.openedPanel.onPageDownPressed !== undefined)
|
||||
onActivated: PanelService.openedPanel.onPageDownPressed()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import Quickshell
|
||||
import Quickshell.Widgets
|
||||
import "../../../Helpers/Keybinds.js" as Keybinds
|
||||
|
||||
import "Providers"
|
||||
import qs.Commons
|
||||
@@ -10,7 +11,6 @@ import qs.Services.Keyboard
|
||||
import qs.Services.Noctalia
|
||||
import qs.Services.UI
|
||||
import qs.Widgets
|
||||
import "../../../Helpers/Keybinds.js" as Keybinds
|
||||
|
||||
// Core launcher logic and UI - shared between SmartPanel (Launcher.qml) and overlay (LauncherOverlayWindow.qml)
|
||||
Rectangle {
|
||||
|
||||
@@ -6,12 +6,12 @@ import Quickshell
|
||||
import Quickshell.Io
|
||||
import Quickshell.Wayland
|
||||
import Quickshell.Widgets
|
||||
import "../../../Helpers/Keybinds.js" as Keybinds
|
||||
import qs.Commons
|
||||
import qs.Modules.MainScreen
|
||||
import qs.Services.Compositor
|
||||
import qs.Services.UI
|
||||
import qs.Widgets
|
||||
import "../../../Helpers/Keybinds.js" as Keybinds
|
||||
|
||||
SmartPanel {
|
||||
id: root
|
||||
|
||||
@@ -2,13 +2,13 @@ import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import Quickshell
|
||||
import "../../../Helpers/Keybinds.js" as Keybinds
|
||||
import qs.Commons
|
||||
import qs.Modules.MainScreen
|
||||
import qs.Modules.Panels.Settings
|
||||
import qs.Services.Theming
|
||||
import qs.Services.UI
|
||||
import qs.Widgets
|
||||
import "../../../Helpers/Keybinds.js" as Keybinds
|
||||
|
||||
SmartPanel {
|
||||
id: root
|
||||
@@ -421,20 +421,20 @@ SmartPanel {
|
||||
}
|
||||
|
||||
Keys.onPressed: event => {
|
||||
if (Keybinds.checkKey(event, 'down', Settings)) {
|
||||
if (Settings.data.wallpaper.useWallhaven) {
|
||||
if (wallhavenView && wallhavenView.gridView) {
|
||||
wallhavenView.gridView.forceActiveFocus();
|
||||
}
|
||||
} else {
|
||||
let currentView = screenRepeater.itemAt(currentScreenIndex);
|
||||
if (currentView && currentView.gridView) {
|
||||
currentView.gridView.forceActiveFocus();
|
||||
}
|
||||
}
|
||||
event.accepted = true;
|
||||
}
|
||||
}
|
||||
if (Keybinds.checkKey(event, 'down', Settings)) {
|
||||
if (Settings.data.wallpaper.useWallhaven) {
|
||||
if (wallhavenView && wallhavenView.gridView) {
|
||||
wallhavenView.gridView.forceActiveFocus();
|
||||
}
|
||||
} else {
|
||||
let currentView = screenRepeater.itemAt(currentScreenIndex);
|
||||
if (currentView && currentView.gridView) {
|
||||
currentView.gridView.forceActiveFocus();
|
||||
}
|
||||
}
|
||||
event.accepted = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -905,13 +905,13 @@ SmartPanel {
|
||||
}
|
||||
|
||||
onKeyPressed: event => {
|
||||
if (Keybinds.checkKey(event, 'enter', Settings)) {
|
||||
if (currentIndex >= 0 && currentIndex < filteredItems.length) {
|
||||
selectItem(filteredItems[currentIndex]);
|
||||
}
|
||||
event.accepted = true;
|
||||
}
|
||||
}
|
||||
if (Keybinds.checkKey(event, 'enter', Settings)) {
|
||||
if (currentIndex >= 0 && currentIndex < filteredItems.length) {
|
||||
selectItem(filteredItems[currentIndex]);
|
||||
}
|
||||
event.accepted = true;
|
||||
}
|
||||
}
|
||||
|
||||
delegate: Item {
|
||||
id: wallpaperItemWrapper
|
||||
@@ -1266,14 +1266,14 @@ SmartPanel {
|
||||
}
|
||||
|
||||
onKeyPressed: event => {
|
||||
if (Keybinds.checkKey(event, 'enter', Settings)) {
|
||||
if (currentIndex >= 0 && currentIndex < wallpapers.length) {
|
||||
let wallpaper = wallpapers[currentIndex];
|
||||
wallhavenDownloadAndApply(wallpaper);
|
||||
}
|
||||
event.accepted = true;
|
||||
}
|
||||
}
|
||||
if (Keybinds.checkKey(event, 'enter', Settings)) {
|
||||
if (currentIndex >= 0 && currentIndex < wallpapers.length) {
|
||||
let wallpaper = wallpapers[currentIndex];
|
||||
wallhavenDownloadAndApply(wallpaper);
|
||||
}
|
||||
event.accepted = true;
|
||||
}
|
||||
}
|
||||
|
||||
delegate: Item {
|
||||
id: wallhavenItemWrapper
|
||||
|
||||
Reference in New Issue
Block a user