mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-29 14:37:47 -04:00
ui: rename internal widgets with D prefix to match qml-common change
This commit is contained in:
1 parent
f8b25bc43c
commit
9ec48c4f13
363 files changed
+2524
-2382
No files matched your search
@@ -1,9 +1,9 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modals.DankLauncherV2
|
||||
import qs.Modals.DLauncherV2
|
||||
import qs.Widgets
|
||||
|
||||
DankPopout {
|
||||
DPopout {
|
||||
id: appDrawerPopout
|
||||
|
||||
layerNamespace: "dms:app-launcher"
|
||||
|
||||
@@ -237,7 +237,7 @@ Variants {
|
||||
}
|
||||
}
|
||||
|
||||
// Theme changes repaint DankBackdrop but nothing else wakes the render loop
|
||||
// Theme changes repaint DBackdrop but nothing else wakes the render loop
|
||||
readonly property color themePrimary: Theme.primary
|
||||
readonly property color themeBackground: Theme.background
|
||||
readonly property bool idleShellLocked: IdleService.isShellLocked
|
||||
@@ -280,7 +280,7 @@ Variants {
|
||||
active: root.showsBackdrop
|
||||
asynchronous: true
|
||||
|
||||
sourceComponent: DankBackdrop {
|
||||
sourceComponent: DBackdrop {
|
||||
screenName: modelData.name
|
||||
blur: Theme.wallpaperBlur
|
||||
onInvalidated: root.invalidate()
|
||||
|
||||
@@ -65,7 +65,7 @@ PluginComponent {
|
||||
title: I18n.tr("Printers")
|
||||
subtitle: CupsService.getCurrentPrinterStatePrettyShort()
|
||||
|
||||
DankDropdown {
|
||||
DDropdown {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
compactMode: true
|
||||
dropdownWidth: CcMetrics.rowDropdownWidth
|
||||
|
||||
@@ -117,7 +117,7 @@ PluginComponent {
|
||||
iconName: "alt_route"
|
||||
title: I18n.tr("Exit node", "Tailscale exit node selector label")
|
||||
|
||||
DankDropdown {
|
||||
DDropdown {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
compactMode: true
|
||||
dropdownWidth: CcMetrics.rowDropdownWidth
|
||||
|
||||
@@ -4,7 +4,7 @@ import qs.Widgets
|
||||
import "../utils/widgets.js" as WidgetUtils
|
||||
import qs.Modules.ControlCenter
|
||||
|
||||
DankGridEditChrome {
|
||||
DGridEditChrome {
|
||||
id: root
|
||||
|
||||
property var widgetData: ({})
|
||||
|
||||
@@ -7,7 +7,7 @@ import qs.Modules.ControlCenter
|
||||
import "../utils/widgets.js" as WidgetUtils
|
||||
import "../../../Common/GridLayout.js" as GridUtils
|
||||
|
||||
DankEditableGrid {
|
||||
DEditableGrid {
|
||||
id: root
|
||||
|
||||
property var model: null
|
||||
|
||||
@@ -5,7 +5,7 @@ import qs.Modules.ControlCenter
|
||||
import "../utils/widgets.js" as WidgetUtils
|
||||
import "../../../Common/GridLayout.js" as GridUtils
|
||||
|
||||
DankEditableGridSlot {
|
||||
DEditableGridSlot {
|
||||
id: root
|
||||
|
||||
readonly property var widgetData: JSON.parse(json)
|
||||
|
||||
@@ -5,11 +5,12 @@ import Quickshell
|
||||
import qs.Common
|
||||
import qs.Modules.ControlCenter
|
||||
import qs.Modules.ControlCenter.Widgets
|
||||
import qs.Modules.DankBar.Widgets
|
||||
import qs.Modules.DankDash
|
||||
import qs.Modules.DBar.Widgets
|
||||
import qs.Modules.DDash
|
||||
import "../utils/widgets.js" as WidgetUtils
|
||||
import "../../../Common/QmlUtils.js" as QmlUtils
|
||||
import qs.Services
|
||||
import qs.DCommon.Widgets
|
||||
import qs.Widgets
|
||||
|
||||
Item {
|
||||
@@ -69,7 +70,7 @@ Item {
|
||||
WidgetUtils.setOption(widgetIndex, key, value);
|
||||
}
|
||||
|
||||
DankContextMenu {
|
||||
DContextMenu {
|
||||
id: contextMenu
|
||||
layerNamespace: "dms:control-center-widget-options"
|
||||
minMenuWidth: CcMetrics.configMenuWidth
|
||||
@@ -129,7 +130,7 @@ Item {
|
||||
visible: root.isIdleInhibitor
|
||||
iconName: "timer"
|
||||
title: I18n.tr("Duration")
|
||||
body: DankDropdown {
|
||||
body: DDropdown {
|
||||
readonly property var presets: IdleInhibitPresets.presetOptions
|
||||
|
||||
compactMode: true
|
||||
|
||||
@@ -57,7 +57,7 @@ FocusScope {
|
||||
readonly property int gridColumns: host.gridColumns ?? Math.min(CcMetrics.gridColumns, gridColumnCap)
|
||||
readonly property real availableGridHeight: (host.availableHeight ?? (host.triggerScreen?.height ?? CcMetrics.fallbackScreenHeight) - CcMetrics.maxHeightInset) - CcMetrics.sheetPadding * 2 - chromeHeight
|
||||
readonly property vector4d chromeRoom: host.chromeRoom ?? Qt.vector4d(Infinity, Infinity, Infinity, Infinity)
|
||||
readonly property DankPanelResizer panelResizer: DankPanelResizer {
|
||||
readonly property DPanelResizer panelResizer: DPanelResizer {
|
||||
popout: root.host
|
||||
stepWidth: CcMetrics.columnWidth + CcMetrics.gridGap
|
||||
widthFor: columns => CcMetrics.sheetWidthFor(columns) + root.sheetContentWidth - CcMetrics.sheetWidthFor(root.gridColumns)
|
||||
@@ -316,7 +316,7 @@ FocusScope {
|
||||
forceActiveFocus();
|
||||
}
|
||||
|
||||
DankGridEditChrome {
|
||||
DGridEditChrome {
|
||||
id: panelChrome
|
||||
|
||||
readonly property real screenWidth: root.host.triggerScreen?.width ?? Infinity
|
||||
|
||||
@@ -4,7 +4,7 @@ import qs.Common
|
||||
import qs.Services
|
||||
import qs.Widgets
|
||||
|
||||
DankPopout {
|
||||
DPopout {
|
||||
id: root
|
||||
|
||||
layerNamespace: "dms:control-center"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DankBar.Popouts
|
||||
import qs.Modules.DBar.Popouts
|
||||
import qs.Services
|
||||
|
||||
BatteryPopoutContent {
|
||||
|
||||
@@ -31,7 +31,7 @@ Item {
|
||||
readonly property Item headerActions: Row {
|
||||
spacing: Theme.spacingS
|
||||
|
||||
DankDropdown {
|
||||
DDropdown {
|
||||
id: adapterDropdown
|
||||
|
||||
function adapterLabel(adapter) {
|
||||
|
||||
@@ -83,7 +83,7 @@ Item {
|
||||
readonly property Item headerActions: Row {
|
||||
spacing: Theme.spacingS
|
||||
|
||||
DankDropdown {
|
||||
DDropdown {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
visible: root.wifiMode && (NetworkService.wifiDevices?.length ?? 0) > 1
|
||||
compactMode: true
|
||||
|
||||
@@ -30,8 +30,7 @@ Item {
|
||||
const y = pos.y;
|
||||
const menuX = I18n.isRtl ? x : x + anchor.width - menu.effectiveMenuWidth;
|
||||
const below = y + anchor.height + Theme.spacingXS;
|
||||
const menuY = below + menu.effectiveMenuHeight > screen.height - Theme.spacingS
|
||||
? y - menu.effectiveMenuHeight - Theme.spacingXS : below;
|
||||
const menuY = below + menu.effectiveMenuHeight > screen.height - Theme.spacingS ? y - menu.effectiveMenuHeight - Theme.spacingXS : below;
|
||||
menu.open(screen, menuX, menuY, false);
|
||||
}
|
||||
|
||||
@@ -39,24 +38,24 @@ Item {
|
||||
menu.hide();
|
||||
}
|
||||
|
||||
DankContextMenu {
|
||||
DContextMenu {
|
||||
id: menu
|
||||
layerNamespace: "dms:control-center-menu"
|
||||
minMenuWidth: CcMetrics.menuMinWidth
|
||||
keyboardNavigable: true
|
||||
transientSurfaceTracker: root.transientSurfaceTracker
|
||||
menuItems: root.visibleItems.map(item => ({
|
||||
type: "item",
|
||||
icon: item.iconName || "",
|
||||
text: item.label || "",
|
||||
enabled: item.enabled !== false,
|
||||
isDestructive: item.destructive === true,
|
||||
action: () => {
|
||||
menu.hide();
|
||||
if (typeof item.action === "function")
|
||||
item.action();
|
||||
}
|
||||
}))
|
||||
type: "item",
|
||||
icon: item.iconName || "",
|
||||
text: item.label || "",
|
||||
enabled: item.enabled !== false,
|
||||
isDestructive: item.destructive === true,
|
||||
action: () => {
|
||||
menu.hide();
|
||||
if (typeof item.action === "function")
|
||||
item.action();
|
||||
}
|
||||
}))
|
||||
|
||||
onOpenStateChanged: {
|
||||
if (openState)
|
||||
|
||||
@@ -2,7 +2,7 @@ import QtQuick
|
||||
import QtQuick.Effects
|
||||
import qs.Common
|
||||
import qs.Modules.ControlCenter
|
||||
import qs.Modules.DankDash
|
||||
import qs.Modules.DDash
|
||||
import qs.Services
|
||||
import qs.DCommon.Widgets
|
||||
import qs.Widgets
|
||||
|
||||
+22
-18
@@ -10,48 +10,52 @@ QtObject {
|
||||
readonly property bool isHorizontal: !isVertical
|
||||
|
||||
function primarySize(item) {
|
||||
return isVertical ? item.height : item.width
|
||||
return isVertical ? item.height : item.width;
|
||||
}
|
||||
|
||||
function crossSize(item) {
|
||||
return isVertical ? item.width : item.height
|
||||
return isVertical ? item.width : item.height;
|
||||
}
|
||||
|
||||
function setPrimaryPos(item, value) {
|
||||
if (isVertical) {
|
||||
item.y = value
|
||||
item.y = value;
|
||||
} else {
|
||||
item.x = value
|
||||
item.x = value;
|
||||
}
|
||||
}
|
||||
|
||||
function getPrimaryPos(item) {
|
||||
return isVertical ? item.y : item.x
|
||||
return isVertical ? item.y : item.x;
|
||||
}
|
||||
|
||||
function primaryAnchor(anchors) {
|
||||
return isVertical ? anchors.verticalCenter : anchors.horizontalCenter
|
||||
return isVertical ? anchors.verticalCenter : anchors.horizontalCenter;
|
||||
}
|
||||
|
||||
function crossAnchor(anchors) {
|
||||
return isVertical ? anchors.horizontalCenter : anchors.verticalCenter
|
||||
return isVertical ? anchors.horizontalCenter : anchors.verticalCenter;
|
||||
}
|
||||
|
||||
function outerVisualEdge() {
|
||||
if (edge === "bottom") return "bottom"
|
||||
if (edge === "left") return "right"
|
||||
if (edge === "right") return "left"
|
||||
if (edge === "top") return "top"
|
||||
return "bottom"
|
||||
if (edge === "bottom")
|
||||
return "bottom";
|
||||
if (edge === "left")
|
||||
return "right";
|
||||
if (edge === "right")
|
||||
return "left";
|
||||
if (edge === "top")
|
||||
return "top";
|
||||
return "bottom";
|
||||
}
|
||||
|
||||
signal axisEdgeChanged()
|
||||
signal axisOrientationChanged()
|
||||
signal changed() // Single coalesced signal
|
||||
signal axisEdgeChanged
|
||||
signal axisOrientationChanged
|
||||
signal changed // Single coalesced signal
|
||||
|
||||
onEdgeChanged: {
|
||||
axisEdgeChanged()
|
||||
axisOrientationChanged()
|
||||
changed()
|
||||
axisEdgeChanged();
|
||||
axisOrientationChanged();
|
||||
changed();
|
||||
}
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -42,7 +42,10 @@ Item {
|
||||
const entries = [];
|
||||
for (let index = 0; index < (entryRepeater?.count ?? 0); index++) {
|
||||
const wrapper = entryRepeater.itemAt(index);
|
||||
entries.push({ size: wrapper?.primarySize ?? 0, mode: wrapper?.overflowMode ?? "bar" });
|
||||
entries.push({
|
||||
size: wrapper?.primarySize ?? 0,
|
||||
mode: wrapper?.overflowMode ?? "bar"
|
||||
});
|
||||
}
|
||||
return entries;
|
||||
}
|
||||
@@ -74,8 +77,12 @@ Item {
|
||||
|
||||
Connections {
|
||||
target: root.entryRepeater
|
||||
function onItemAdded(index, item) { root.entryRevision++; }
|
||||
function onItemRemoved(index, item) { root.entryRevision++; }
|
||||
function onItemAdded(index, item) {
|
||||
root.entryRevision++;
|
||||
}
|
||||
function onItemRemoved(index, item) {
|
||||
root.entryRevision++;
|
||||
}
|
||||
}
|
||||
|
||||
onLayoutEntriesChanged: requestOverflowLayout()
|
||||
@@ -137,7 +144,9 @@ Item {
|
||||
const allEntries = entries.slice();
|
||||
const allStates = participating.slice();
|
||||
if (overflowCount > 0) {
|
||||
allEntries.splice(overflowPosition, 0, { widgetId: "overflow" });
|
||||
allEntries.splice(overflowPosition, 0, {
|
||||
widgetId: "overflow"
|
||||
});
|
||||
allStates.splice(overflowPosition, 0, true);
|
||||
}
|
||||
const next = SegmentRoles.resolve(allEntries, allStates);
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -81,7 +81,7 @@ Item {
|
||||
id: barVariants
|
||||
model: ShellLayout.hostedScreens(root.barConfig?.id)
|
||||
|
||||
delegate: DankBarWindow {
|
||||
delegate: DBarWindow {
|
||||
rootWindow: root
|
||||
barConfig: root.barConfig
|
||||
leftWidgetsModel: root.leftWidgetsModel
|
||||
@@ -1,13 +1,13 @@
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import qs.Common
|
||||
import qs.Modules.DankIsland
|
||||
import qs.Modules.DIsland
|
||||
import qs.Services
|
||||
import qs.Widgets
|
||||
|
||||
Item {
|
||||
id: barWindow
|
||||
readonly property var log: Log.scoped("DankBarBody")
|
||||
readonly property var log: Log.scoped("DBarBody")
|
||||
|
||||
required property var hostWindow
|
||||
required property var rootWindow
|
||||
@@ -1083,7 +1083,7 @@ Item {
|
||||
onWorkspaceSwitchRequested: direction => topBarContent.switchWorkspace(direction)
|
||||
}
|
||||
|
||||
DankBarContent {
|
||||
DBarContent {
|
||||
id: topBarContent
|
||||
barWindow: barWindow
|
||||
rootWindow: barWindow.rootWindow
|
||||
+14
-4
@@ -1,6 +1,6 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DankBar.Widgets
|
||||
import qs.Modules.DBar.Widgets
|
||||
import qs.Modules.SurfaceWidgets
|
||||
import qs.Services
|
||||
import "OverflowLayout.js" as OverflowLayout
|
||||
@@ -32,7 +32,14 @@ Item {
|
||||
readonly property real fittedLeadingReach: leadingImplicitSize > 0 ? leadingImplicitSize + sectionGap : 0
|
||||
readonly property real fittedTrailingReach: trailingImplicitSize > 0 ? trailingImplicitSize + sectionGap : 0
|
||||
readonly property var fittedCenterSection: _barIsVertical ? vCenterSection : hCenterSection
|
||||
property var overflowPlan: ({ hidden: { left: [], center: [], right: [] }, fits: true })
|
||||
property var overflowPlan: ({
|
||||
hidden: {
|
||||
left: [],
|
||||
center: [],
|
||||
right: []
|
||||
},
|
||||
fits: true
|
||||
})
|
||||
readonly property var overflowSections: _barIsVertical ? [vLeftSection, vCenterSection, vRightSection] : [hLeftSection, hCenterSection, hRightSection]
|
||||
readonly property real overflowLength: fitToWidgets ? barWindow.fittedAvailableLength : (_barIsVertical ? height : width)
|
||||
readonly property string overflowCenteringMode: SettingsData.centeringMode
|
||||
@@ -70,7 +77,10 @@ Item {
|
||||
confineCenter: fitToWidgets,
|
||||
restoreMargin: Theme.spacingS
|
||||
}, overflowPlan.hidden);
|
||||
const next = { hidden: result.hidden, fits: result.fits };
|
||||
const next = {
|
||||
hidden: result.hidden,
|
||||
fits: result.fits
|
||||
};
|
||||
if (JSON.stringify(next) !== JSON.stringify(overflowPlan))
|
||||
overflowPlan = next;
|
||||
}
|
||||
@@ -351,7 +361,7 @@ Item {
|
||||
return "left";
|
||||
}
|
||||
|
||||
DankBarHoverController {
|
||||
DBarHoverController {
|
||||
id: hoverController
|
||||
barContent: topBarContent
|
||||
barWindow: topBarContent.barWindow
|
||||
File renamed without changes.
+3
-3
@@ -2,13 +2,13 @@ import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Wayland
|
||||
import qs.Common
|
||||
import qs.Modules.DankIsland
|
||||
import qs.Modules.DIsland
|
||||
import qs.Services
|
||||
import qs.Widgets
|
||||
|
||||
PanelWindow {
|
||||
id: barWindow
|
||||
readonly property var log: Log.scoped("DankBarWindow")
|
||||
readonly property var log: Log.scoped("DBarWindow")
|
||||
|
||||
required property var rootWindow
|
||||
required property var barConfig
|
||||
@@ -157,7 +157,7 @@ PanelWindow {
|
||||
}
|
||||
}
|
||||
|
||||
DankBarBody {
|
||||
DBarBody {
|
||||
id: body
|
||||
anchors.fill: parent
|
||||
hostWindow: barWindow
|
||||
File renamed without changes.
+53
-13
@@ -56,16 +56,26 @@ function section(entries, hidden, spacing, triggerSize, triggerIndex) {
|
||||
positions[indices[index]] = position;
|
||||
}
|
||||
const middle = Math.floor(entries.length / 2);
|
||||
const anchor = { count: entries.length, middle: indices.indexOf(middle), previous: indices.indexOf(middle - 1) };
|
||||
return { sizes, indices, positions, buttonPosition, totalSize: layout.totalSize, anchor };
|
||||
const anchor = {
|
||||
count: entries.length,
|
||||
middle: indices.indexOf(middle),
|
||||
previous: indices.indexOf(middle - 1)
|
||||
};
|
||||
return {
|
||||
sizes,
|
||||
indices,
|
||||
positions,
|
||||
buttonPosition,
|
||||
totalSize: layout.totalSize,
|
||||
anchor
|
||||
};
|
||||
}
|
||||
|
||||
function measure(sections, hidden, options) {
|
||||
const names = ["left", "center", "right"];
|
||||
const layouts = {};
|
||||
for (const name of names) {
|
||||
layouts[name] = section(sections[name], hidden[name], options.spacing, options.triggerSize,
|
||||
options.positions?.[name] ?? defaultPosition(name, sections[name].length));
|
||||
layouts[name] = section(sections[name], hidden[name], options.spacing, options.triggerSize, options.positions?.[name] ?? defaultPosition(name, sections[name].length));
|
||||
}
|
||||
const min = options.start ?? 0;
|
||||
const max = options.length - (options.end ?? 0);
|
||||
@@ -81,9 +91,21 @@ function measure(sections, hidden, options) {
|
||||
const livePositions = centered.positions.filter(position => position !== null);
|
||||
const centerStart = livePositions.length ? Math.min(...livePositions) : 0;
|
||||
const intervals = {
|
||||
left: { start: min, end: min + leading, size: leading },
|
||||
center: { start: centerStart, end: centerStart + centered.totalSize, size: centered.totalSize },
|
||||
right: { start: max - trailing, end: max, size: trailing }
|
||||
left: {
|
||||
start: min,
|
||||
end: min + leading,
|
||||
size: leading
|
||||
},
|
||||
center: {
|
||||
start: centerStart,
|
||||
end: centerStart + centered.totalSize,
|
||||
size: centered.totalSize
|
||||
},
|
||||
right: {
|
||||
start: max - trailing,
|
||||
end: max,
|
||||
size: trailing
|
||||
}
|
||||
};
|
||||
const collisions = new Set();
|
||||
for (const name of names) {
|
||||
@@ -102,7 +124,12 @@ function measure(sections, hidden, options) {
|
||||
}
|
||||
}
|
||||
}
|
||||
return { fits: collisions.size === 0, collisions: [...collisions], layouts, intervals };
|
||||
return {
|
||||
fits: collisions.size === 0,
|
||||
collisions: [...collisions],
|
||||
layouts,
|
||||
intervals
|
||||
};
|
||||
}
|
||||
|
||||
function resolve(sections, options, previous = {}) {
|
||||
@@ -132,7 +159,10 @@ function resolve(sections, options, previous = {}) {
|
||||
}
|
||||
eligible.sort((a, b) => Math.abs(a + 0.5 - position) - Math.abs(b + 0.5 - position));
|
||||
if (eligible.length) {
|
||||
candidate = { name, index: eligible[0] };
|
||||
candidate = {
|
||||
name,
|
||||
index: eligible[0]
|
||||
};
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -153,16 +183,24 @@ function resolve(sections, options, previous = {}) {
|
||||
for (const index of previous[name] ?? []) {
|
||||
if (sections[name][index]?.size > 0 && sections[name][index].mode === "auto" && !hidden[name].includes(index)) {
|
||||
hidden[name].push(index);
|
||||
restoring.push({ name, index });
|
||||
restoring.push({
|
||||
name,
|
||||
index
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const { name, index } of restoring) {
|
||||
for (const {
|
||||
name,
|
||||
index
|
||||
} of restoring) {
|
||||
const trial = {};
|
||||
for (const key of names)
|
||||
trial[key] = hidden[key].filter(value => key !== name || value !== index);
|
||||
const padded = Object.assign({}, sections, {
|
||||
[name]: sections[name].map((entry, entryIndex) => entryIndex === index ? Object.assign({}, entry, { size: entry.size + (options.restoreMargin ?? 0) }) : entry)
|
||||
[name]: sections[name].map((entry, entryIndex) => entryIndex === index ? Object.assign({}, entry, {
|
||||
size: entry.size + (options.restoreMargin ?? 0)
|
||||
}) : entry)
|
||||
});
|
||||
if (measure(padded, trial, options).fits)
|
||||
hidden[name] = trial[name];
|
||||
@@ -170,5 +208,7 @@ function resolve(sections, options, previous = {}) {
|
||||
const result = freshFits && !measure(sections, hidden, options).fits ? fresh : hidden;
|
||||
for (const name of names)
|
||||
result[name].sort((a, b) => a - b);
|
||||
return Object.assign({ hidden: result }, measure(sections, result, options));
|
||||
return Object.assign({
|
||||
hidden: result
|
||||
}, measure(sections, result, options));
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -3,7 +3,7 @@ import QtQuick.Window
|
||||
import qs.Common
|
||||
import qs.Widgets
|
||||
|
||||
DankPopout {
|
||||
DPopout {
|
||||
id: root
|
||||
|
||||
layerNamespace: "dms:battery"
|
||||
File renamed without changes.
+1
-1
@@ -3,7 +3,7 @@ import qs.Common
|
||||
import qs.Modules.ColorPicker
|
||||
import qs.Widgets
|
||||
|
||||
DankPopout {
|
||||
DPopout {
|
||||
id: root
|
||||
|
||||
layerNamespace: "dms:color-picker"
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DankBar
|
||||
import qs.Modules.DBar
|
||||
import qs.Services
|
||||
import qs.DCommon.Widgets
|
||||
import qs.Widgets
|
||||
|
||||
DankPopout {
|
||||
DPopout {
|
||||
id: root
|
||||
|
||||
layerNamespace: "dms:layout"
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DankBar.Widgets
|
||||
import qs.Modules.DBar.Widgets
|
||||
import qs.Modules.Notifications
|
||||
import qs.DCommon.Widgets
|
||||
import qs.Widgets
|
||||
|
||||
DankPopout {
|
||||
DPopout {
|
||||
id: root
|
||||
|
||||
property var triggerScreen: null
|
||||
+1
-1
@@ -3,7 +3,7 @@ import qs.Common
|
||||
import qs.Modules.PowerMenu
|
||||
import qs.Widgets
|
||||
|
||||
DankPopout {
|
||||
DPopout {
|
||||
id: root
|
||||
|
||||
signal powerActionRequested(string action)
|
||||
+1
-1
@@ -6,7 +6,7 @@ import qs.Modules.SystemUpdate
|
||||
import qs.Services
|
||||
import qs.Widgets
|
||||
|
||||
DankPopout {
|
||||
DPopout {
|
||||
id: systemUpdatePopout
|
||||
|
||||
layerNamespace: "dms:system-update"
|
||||
+1
-1
@@ -5,7 +5,7 @@ import qs.Widgets
|
||||
import qs.Modules.ControlCenter
|
||||
import qs.Modules.ControlCenter.Details
|
||||
|
||||
DankPopout {
|
||||
DPopout {
|
||||
id: root
|
||||
|
||||
layerNamespace: "dms:vpn"
|
||||
File renamed without changes.
File renamed without changes.
+1
-1
@@ -112,7 +112,7 @@ Item {
|
||||
active: root.wantOpen
|
||||
onLoaded: root.showPopout()
|
||||
sourceComponent: Component {
|
||||
DankPopout {
|
||||
DPopout {
|
||||
layerNamespace: "dms:bar-overflow"
|
||||
screen: root.sectionContext.parentScreen
|
||||
popupWidth: root.popupWidth
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -3,7 +3,11 @@
|
||||
function normalize(widgets) {
|
||||
return (widgets || []).map((widget, index) => {
|
||||
if (typeof widget === "string")
|
||||
return { widgetId: widget, id: widget + "_" + index, enabled: true };
|
||||
return {
|
||||
widgetId: widget,
|
||||
id: widget + "_" + index,
|
||||
enabled: true
|
||||
};
|
||||
|
||||
const entry = Object.assign({}, widget);
|
||||
entry.widgetId = widget.id || widget.widgetId;
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -132,7 +132,7 @@ BasePill {
|
||||
}
|
||||
}
|
||||
|
||||
DankContextMenu {
|
||||
DContextMenu {
|
||||
id: contextMenu
|
||||
layerNamespace: "dms:clipboard-context-menu"
|
||||
menuItems: [
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DankBar
|
||||
import qs.Modules.DBar
|
||||
import qs.Modules.Plugins
|
||||
import qs.DCommon.Widgets
|
||||
import qs.Widgets
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -59,7 +59,7 @@ MonitorPill {
|
||||
Loader {
|
||||
id: tooltipLoader
|
||||
active: false
|
||||
sourceComponent: DankTooltip {}
|
||||
sourceComponent: DTooltip {}
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
+1
-1
@@ -364,7 +364,7 @@ BasePill {
|
||||
Loader {
|
||||
id: tooltipLoader
|
||||
active: false
|
||||
sourceComponent: DankTooltip {}
|
||||
sourceComponent: DTooltip {}
|
||||
}
|
||||
|
||||
Loader {
|
||||
+2
-2
@@ -2,12 +2,12 @@ import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Widgets
|
||||
import qs.Common
|
||||
import qs.Modules.DankBar
|
||||
import qs.Modules.DBar
|
||||
import qs.Services
|
||||
import qs.DCommon.Widgets
|
||||
import qs.Widgets
|
||||
|
||||
DankPopout {
|
||||
DPopout {
|
||||
id: root
|
||||
|
||||
property var currentWindow: null
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+2
-2
@@ -2,7 +2,7 @@ import QtQuick
|
||||
import Quickshell.Services.Mpris
|
||||
import Quickshell.Widgets
|
||||
import qs.Common
|
||||
import qs.Modules.DankBar
|
||||
import qs.Modules.DBar
|
||||
import qs.Modules.Plugins
|
||||
import qs.Services
|
||||
import qs.DCommon.Widgets
|
||||
@@ -83,7 +83,7 @@ BasePill {
|
||||
Loader {
|
||||
id: tooltipLoader
|
||||
active: false
|
||||
sourceComponent: DankTooltip {}
|
||||
sourceComponent: DTooltip {}
|
||||
}
|
||||
|
||||
function showTrackTooltip() {
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -128,7 +128,7 @@ BasePill {
|
||||
}
|
||||
}
|
||||
|
||||
DankContextMenu {
|
||||
DContextMenu {
|
||||
id: contextMenu
|
||||
layerNamespace: "dms:notepad-context-menu"
|
||||
menuItems: root.savedTabEntries.map(entry => ({
|
||||
File renamed without changes.
File renamed without changes.
+1
-1
@@ -1,6 +1,6 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DankBar
|
||||
import qs.Modules.DBar
|
||||
import qs.Modules.Plugins
|
||||
import qs.Services
|
||||
import qs.DCommon.Widgets
|
||||
File renamed without changes.
+3
-3
@@ -3,7 +3,7 @@ import QtQuick.Effects
|
||||
import Quickshell
|
||||
import Quickshell.Widgets
|
||||
import qs.Common
|
||||
import qs.Modules.DankBar
|
||||
import qs.Modules.DBar
|
||||
import qs.Modules.Plugins
|
||||
import qs.Services
|
||||
import qs.DCommon.Widgets
|
||||
@@ -449,7 +449,7 @@ BasePill {
|
||||
|
||||
active: false
|
||||
|
||||
sourceComponent: DankTooltip {}
|
||||
sourceComponent: DTooltip {}
|
||||
}
|
||||
|
||||
function menuAnchorFor(item) {
|
||||
@@ -468,7 +468,7 @@ BasePill {
|
||||
windowContextMenu.openFromBar(item ? root.menuAnchorFor(item) : root.contextMenuAnchor());
|
||||
}
|
||||
|
||||
DankContextMenu {
|
||||
DContextMenu {
|
||||
id: windowContextMenu
|
||||
|
||||
property var currentWindow: null
|
||||
+4
-4
@@ -3,7 +3,7 @@ import QtQuick.Layouts
|
||||
import Quickshell
|
||||
import Quickshell.Services.SystemTray
|
||||
import qs.Common
|
||||
import qs.Modules.DankBar
|
||||
import qs.Modules.DBar
|
||||
import qs.Modules.Plugins
|
||||
import qs.Services
|
||||
import qs.DCommon.Widgets
|
||||
@@ -500,7 +500,7 @@ BasePill {
|
||||
return rows * itemSize + (rows - 1) * spacing + popupPadding * 2;
|
||||
}
|
||||
|
||||
DankPopout {
|
||||
DPopout {
|
||||
id: overflowPopout
|
||||
layerNamespace: "dms:tray-overflow"
|
||||
screen: root.parentScreen
|
||||
@@ -509,7 +509,7 @@ BasePill {
|
||||
content: overflowContentComponent
|
||||
}
|
||||
|
||||
DankPopout {
|
||||
DPopout {
|
||||
id: trayMenuPopout
|
||||
layerNamespace: "dms:tray-menu"
|
||||
screen: root.parentScreen
|
||||
@@ -988,7 +988,7 @@ BasePill {
|
||||
}
|
||||
}
|
||||
|
||||
// Overflow grid content rendered inside DankPopout
|
||||
// Overflow grid content rendered inside DPopout
|
||||
Component {
|
||||
id: overflowContentComponent
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.DankBar
|
||||
import qs.Modules.DBar
|
||||
import qs.Modules.Plugins
|
||||
import qs.Services
|
||||
import qs.DCommon.Widgets
|
||||
File renamed without changes.
+1
-1
@@ -43,7 +43,7 @@ BasePill {
|
||||
Loader {
|
||||
id: tooltipLoader
|
||||
active: false
|
||||
sourceComponent: DankTooltip {}
|
||||
sourceComponent: DTooltip {}
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
File renamed without changes.
+1
-1
@@ -4,7 +4,7 @@ import Quickshell
|
||||
import Quickshell.Widgets
|
||||
import Quickshell.WindowManager
|
||||
import qs.Common
|
||||
import qs.Modules.DankBar
|
||||
import qs.Modules.DBar
|
||||
import qs.Modules.Plugins
|
||||
import qs.Services
|
||||
import qs.DCommon.Widgets
|
||||
+4
-4
@@ -7,10 +7,10 @@ import qs.Services
|
||||
import qs.DCommon.Widgets
|
||||
import qs.Widgets
|
||||
import qs.Modules.ControlCenter.Widgets
|
||||
import qs.Modules.DankDash.Overview
|
||||
import qs.Modules.DDash.Overview
|
||||
import "../../DCommon/Common/FocusNavigation.js" as FocusNavigation
|
||||
|
||||
DankPopout {
|
||||
DPopout {
|
||||
id: root
|
||||
|
||||
layerNamespace: "dms:dash"
|
||||
@@ -276,7 +276,7 @@ DankPopout {
|
||||
readonly property int contentRows: DashMetrics.rowsForHeight(pages.currentHostImplicitHeight)
|
||||
readonly property int panelRows: Math.max(DashMetrics.panelFloorRowsFor(root.activeTabId), contentRows)
|
||||
readonly property bool panelAtDefault: panelColumns === DashMetrics.defaultGridColumns && panelRows === DashMetrics.defaultPanelRows(root.activeTabId, contentRows)
|
||||
readonly property DankPanelResizer panelResizer: DankPanelResizer {
|
||||
readonly property DPanelResizer panelResizer: DPanelResizer {
|
||||
popout: root
|
||||
stepWidth: DashMetrics.preferredColumnWidth + DashMetrics.gridGap
|
||||
widthFor: columns => root.panelWidthFor(columns)
|
||||
@@ -568,7 +568,7 @@ DankPopout {
|
||||
onDismissed: mainContainer.focusInitial()
|
||||
}
|
||||
|
||||
DankGridEditChrome {
|
||||
DGridEditChrome {
|
||||
id: panelChrome
|
||||
|
||||
anchors.fill: parent
|
||||
File renamed without changes.
+1
-1
@@ -3,7 +3,7 @@ pragma ComponentBehavior: Bound
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Modules.ControlCenter.Widgets
|
||||
import qs.Modules.DankDash.Overview
|
||||
import qs.Modules.DDash.Overview
|
||||
import "utils/cards.js" as CardUtils
|
||||
|
||||
Item {
|
||||
File renamed without changes.
+1
-1
@@ -4,7 +4,7 @@ import QtQuick
|
||||
import Quickshell
|
||||
import qs.Common
|
||||
import qs.Services
|
||||
import qs.Modules.DankDash.Overview
|
||||
import qs.Modules.DDash.Overview
|
||||
import "utils/options.js" as Options
|
||||
|
||||
Singleton {
|
||||
File renamed without changes.
File renamed without changes.
+3
-3
@@ -5,7 +5,7 @@ import qs.Common
|
||||
import qs.Widgets
|
||||
import qs.Modules.ControlCenter.Widgets
|
||||
import qs.Modules.Settings.Widgets
|
||||
import qs.Modules.DankDash.Overview
|
||||
import qs.Modules.DDash.Overview
|
||||
import "../../Common/GridLayout.js" as GridUtils
|
||||
import "utils/widgets.js" as WidgetUtils
|
||||
import "../../DCommon/Common/FocusNavigation.js" as FocusNavigation
|
||||
@@ -119,7 +119,7 @@ Item {
|
||||
optionsSheet.dismiss();
|
||||
}
|
||||
|
||||
DankEditableGrid {
|
||||
DEditableGrid {
|
||||
id: grid
|
||||
width: parent.width
|
||||
editMode: root.editMode
|
||||
@@ -136,7 +136,7 @@ Item {
|
||||
id: slots
|
||||
model: grid.tileModel
|
||||
|
||||
DankEditableGridSlot {
|
||||
DEditableGridSlot {
|
||||
id: slot
|
||||
grid: grid
|
||||
readonly property var widget: JSON.parse(json)
|
||||
+1
-1
@@ -5,7 +5,7 @@ import qs.Common
|
||||
import qs.Services
|
||||
import qs.DCommon.Widgets
|
||||
import qs.Widgets
|
||||
import qs.Modules.DankDash
|
||||
import qs.Modules.DDash
|
||||
import "../../../Common/Format.js" as Format
|
||||
|
||||
MediaChromeBase {
|
||||
+1
-1
@@ -5,7 +5,7 @@ import qs.Common
|
||||
import qs.DCommon.Widgets
|
||||
import qs.Widgets
|
||||
import qs.Services
|
||||
import qs.Modules.DankDash
|
||||
import qs.Modules.DDash
|
||||
|
||||
FocusScope {
|
||||
id: root
|
||||
+1
-1
@@ -3,7 +3,7 @@ pragma ComponentBehavior: Bound
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.DCommon.Widgets
|
||||
import qs.Modules.DankDash
|
||||
import qs.Modules.DDash
|
||||
import "../../../Common/Format.js" as Format
|
||||
|
||||
Item {
|
||||
+1
-1
@@ -3,7 +3,7 @@ pragma ComponentBehavior: Bound
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.DCommon.Widgets
|
||||
import qs.Modules.DankDash
|
||||
import qs.Modules.DDash
|
||||
import "../../../Common/Format.js" as Format
|
||||
|
||||
MediaChromeBase {
|
||||
File renamed without changes.
Loaded 100 of 363 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user