mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-06 05:28:29 -04:00
theme: sweep everything that isnt using a spacing token from singleton,
add Theme.XXS
This commit is contained in:
@@ -202,7 +202,7 @@ FloatingWindow {
|
||||
|
||||
Column {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
spacing: 2
|
||||
spacing: Theme.spacingXXS
|
||||
width: parent.width - 28 - Theme.spacingM * 3 - 24
|
||||
|
||||
StyledText {
|
||||
@@ -283,26 +283,31 @@ FloatingWindow {
|
||||
}
|
||||
|
||||
function selectNext() {
|
||||
if (filteredApps.length === 0) return;
|
||||
if (filteredApps.length === 0)
|
||||
return;
|
||||
keyboardNavigationActive = true;
|
||||
selectedIndex = Math.min(selectedIndex + 1, filteredApps.length - 1);
|
||||
}
|
||||
|
||||
function selectPrevious() {
|
||||
if (filteredApps.length === 0) return;
|
||||
if (filteredApps.length === 0)
|
||||
return;
|
||||
keyboardNavigationActive = true;
|
||||
selectedIndex = Math.max(selectedIndex - 1, -1);
|
||||
if (selectedIndex === -1) keyboardNavigationActive = false;
|
||||
if (selectedIndex === -1)
|
||||
keyboardNavigationActive = false;
|
||||
}
|
||||
|
||||
function selectApp() {
|
||||
if (selectedIndex < 0 || selectedIndex >= filteredApps.length) return;
|
||||
if (selectedIndex < 0 || selectedIndex >= filteredApps.length)
|
||||
return;
|
||||
selectAppByIndex(selectedIndex);
|
||||
}
|
||||
|
||||
function selectAppByIndex(idx) {
|
||||
const app = filteredApps[idx];
|
||||
if (!app) return;
|
||||
if (!app)
|
||||
return;
|
||||
root.appSelected(app.id || app.execString || "");
|
||||
hide();
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ Rectangle {
|
||||
Column {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
width: parent.width - Theme.iconSize - Theme.spacingM * 3 - buttonsRow.width
|
||||
spacing: 2
|
||||
spacing: Theme.spacingXXS
|
||||
|
||||
StyledText {
|
||||
text: root.displayedName
|
||||
@@ -62,7 +62,7 @@ Rectangle {
|
||||
|
||||
Column {
|
||||
width: parent.width
|
||||
spacing: 2
|
||||
spacing: Theme.spacingXXS
|
||||
|
||||
Row {
|
||||
width: parent.width
|
||||
|
||||
@@ -40,7 +40,7 @@ StyledRect {
|
||||
Column {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
width: parent.width - Theme.iconSize - openButton.width - Theme.spacingM * 2
|
||||
spacing: 2
|
||||
spacing: Theme.spacingXXS
|
||||
|
||||
StyledText {
|
||||
text: root.settingLabel
|
||||
|
||||
Reference in New Issue
Block a user