mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-23 19:54:02 -04:00
windows: drop the qt decoration env, add a title bars toggle and go frameless for own chrome
fixes #3679 fixes #3572
This commit is contained in:
1 parent
8299d8fa77
commit
98bf56cbcd
9 files changed
+57
-10
No files matched your search
+1
-1
Submodule dank-qml-common updated: 97efc1729d...014e401bf5.
Generated
+3
-3
@@ -3,11 +3,11 @@
|
||||
"dank-qml-common": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1791337282,
|
||||
"narHash": "sha256-qOVjYFerd7EJ4Uasy98EbIEC6mD7VP/CtXYT41+t6xw=",
|
||||
"lastModified": 1791341415,
|
||||
"narHash": "sha256-5yyGoWt0YcLvqWQacJIJfsxkSZROQZVnwui6UZz5FIs=",
|
||||
"owner": "AvengeMedia",
|
||||
"repo": "dank-qml-common",
|
||||
"rev": "97efc1729da5697dee93cfe707c4cd9dab83785d",
|
||||
"rev": "66e28f5d322d4c385639c9648cbbf1ec29cfd0fc",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@@ -175,6 +175,7 @@ Singleton {
|
||||
property string matugenTargetMonitor: Spec.SPEC.matugenTargetMonitor.def
|
||||
property real popupTransparency: Spec.SPEC.popupTransparency.def
|
||||
property bool floatingWindowSyncGlobal: Spec.SPEC.floatingWindowSyncGlobal.def
|
||||
property bool floatingWindowTitleBars: Spec.SPEC.floatingWindowTitleBars.def
|
||||
property real floatingWindowTransparency: Spec.SPEC.floatingWindowTransparency.def
|
||||
property bool floatingWindowForegroundLayers: Spec.SPEC.floatingWindowForegroundLayers.def
|
||||
property real floatingWindowForegroundTransparency: Spec.SPEC.floatingWindowForegroundTransparency.def
|
||||
|
||||
@@ -68,6 +68,9 @@ var LOCAL_SPEC = {
|
||||
floatingWindowSyncGlobal: {
|
||||
def: true
|
||||
},
|
||||
floatingWindowTitleBars: {
|
||||
def: true
|
||||
},
|
||||
floatingWindowTransparency: {
|
||||
def: 1.0,
|
||||
coerce: Util.percentToUnit
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
export XDG_SESSION_TYPE=wayland
|
||||
export QT_QPA_PLATFORM=wayland
|
||||
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
||||
export EGL_PLATFORM=gbm
|
||||
if command -v start-hyprland >/dev/null 2>&1; then
|
||||
exec start-hyprland -- -c /etc/greetd/dms-hypr.lua
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
export XDG_SESSION_TYPE=wayland
|
||||
export QT_QPA_PLATFORM=wayland
|
||||
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
||||
export EGL_PLATFORM=gbm
|
||||
|
||||
exec niri -c /etc/greetd/dms-niri.kdl
|
||||
@@ -389,6 +389,16 @@ Column {
|
||||
}
|
||||
}
|
||||
|
||||
SettingsToggleRow {
|
||||
tab: "theme"
|
||||
tags: ["floating", "window", "title", "bar", "header", "csd", "decoration", "compositor", "kwin", "controls"]
|
||||
settingKey: "floatingWindowTitleBars"
|
||||
text: I18n.tr("Title bars")
|
||||
description: I18n.tr("Off lets the compositor decorate DMS windows. Open windows update when reopened.", "theme floating windows section, title bars toggle description")
|
||||
checked: SettingsData.floatingWindowTitleBars
|
||||
onToggled: checked => SettingsData.set("floatingWindowTitleBars", checked)
|
||||
}
|
||||
|
||||
SettingsToggleRow {
|
||||
tab: "theme"
|
||||
tags: ["floating", "window", "tile", "tiling", "compositor", "rule", "niri", "hyprland", "mango"]
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
//@ pragma Env QT_MEDIA_BACKEND=ffmpeg
|
||||
//@ pragma Env QT_FFMPEG_DECODING_HW_DEVICE_TYPES=vaapi
|
||||
//@ pragma Env QT_FFMPEG_ENCODING_HW_DEVICE_TYPES=vaapi
|
||||
//@ pragma Env QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
||||
//@ pragma Env QT_QUICK_CONTROLS_STYLE=Material
|
||||
//@ pragma UseQApplication
|
||||
//@ pragma AppId com.danklinux.dms
|
||||
@@ -37,6 +36,7 @@ ShellRoot {
|
||||
DC.Host.cache = CacheData;
|
||||
DC.Host.files = FilesService;
|
||||
DC.Host.hyprlandFocusGrab = Qt.binding(() => CompositorService.useHyprlandFocusGrab);
|
||||
DC.Host.ownWindowDecorations = Qt.binding(() => SettingsData.floatingWindowTitleBars);
|
||||
void IconThemeService.ready;
|
||||
if (entrypoint.runGreeter)
|
||||
return;
|
||||
|
||||
@@ -1043,28 +1043,30 @@
|
||||
"tabIndex": -1,
|
||||
"category": "Interface style",
|
||||
"keywords": [
|
||||
"adds",
|
||||
"authentication",
|
||||
"compositor",
|
||||
"decorate",
|
||||
"floating",
|
||||
"foreground",
|
||||
"interface",
|
||||
"lets",
|
||||
"notepad",
|
||||
"opacity",
|
||||
"open",
|
||||
"override",
|
||||
"polkit",
|
||||
"rule",
|
||||
"reopened",
|
||||
"settings",
|
||||
"style",
|
||||
"tile",
|
||||
"tiling",
|
||||
"transparency",
|
||||
"update",
|
||||
"window",
|
||||
"windows"
|
||||
],
|
||||
"page": "theme_surfaces",
|
||||
"description": "Adds a compositor window rule so DMS windows such as Settings open floating"
|
||||
"description": "Off lets the compositor decorate DMS windows. Open windows update when reopened."
|
||||
},
|
||||
{
|
||||
"section": "focusRingEnabled",
|
||||
@@ -2552,6 +2554,39 @@
|
||||
],
|
||||
"page": "notifications"
|
||||
},
|
||||
{
|
||||
"section": "floatingWindowTitleBars",
|
||||
"label": "Title bars",
|
||||
"tabIndex": -1,
|
||||
"category": "Interface style",
|
||||
"keywords": [
|
||||
"bar",
|
||||
"bars",
|
||||
"compositor",
|
||||
"controls",
|
||||
"csd",
|
||||
"decorate",
|
||||
"decoration",
|
||||
"floating",
|
||||
"header",
|
||||
"interface",
|
||||
"kwin",
|
||||
"lets",
|
||||
"open",
|
||||
"panel",
|
||||
"reopened",
|
||||
"statusbar",
|
||||
"style",
|
||||
"taskbar",
|
||||
"title",
|
||||
"topbar",
|
||||
"update",
|
||||
"window",
|
||||
"windows"
|
||||
],
|
||||
"page": "theme_surfaces",
|
||||
"description": "Off lets the compositor decorate DMS windows. Open windows update when reopened."
|
||||
},
|
||||
{
|
||||
"section": "wallpaperTransition",
|
||||
"label": "Transition",
|
||||
|
||||
Reference in new issue
Block a user