Add glassMxrph shell sources
Initial commit of the Quickshell desktop suite: bar, dock, launcher, settings, Control Center, dashboard, OSD, lock screen, desktop widgets, plugin host with the vendored Noctalia/Omarchy compatibility layer, helpers, packaging, tests and phase documentation. Includes the optimization work so far: usage widgets and dashboard gauges no longer animate continuously, desktop widgets pause while covered, system controls stop flickering on background polls, dock app matching uses an indexed catalog, and workspace ghosts are created only for occupied slots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
99e64a7713
433 files changed
+57792
No files matched your search
@@ -0,0 +1,41 @@
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
import qs.compat.noctalia.Widgets
|
||||
|
||||
Text {
|
||||
id: root
|
||||
|
||||
property bool richTextEnabled: false
|
||||
property bool markdownTextEnabled: false
|
||||
property string family: Settings.data.ui.fontDefault
|
||||
property real pointSize: Style.fontSizeM
|
||||
property bool applyUiScale: true
|
||||
property real fontScale: {
|
||||
const fontScale = (root.family === Settings.data.ui.fontDefault ? Settings.data.ui.fontDefaultScale : Settings.data.ui.fontFixedScale);
|
||||
if (applyUiScale) {
|
||||
return fontScale * Style.uiScaleRatio;
|
||||
}
|
||||
return fontScale;
|
||||
}
|
||||
property var features: ({})
|
||||
|
||||
opacity: enabled ? 1.0 : 0.6
|
||||
font.family: root.family
|
||||
font.weight: Style.fontWeightMedium
|
||||
font.pointSize: Math.max(1, root.pointSize * fontScale)
|
||||
font.features: root.features
|
||||
color: Color.mOnSurface
|
||||
elide: Text.ElideRight
|
||||
wrapMode: Text.NoWrap
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
|
||||
textFormat: {
|
||||
if (root.richTextEnabled) {
|
||||
return Text.RichText;
|
||||
} else if (root.markdownTextEnabled) {
|
||||
return Text.MarkdownText;
|
||||
}
|
||||
return Text.PlainText;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user