mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
Merge branch 'master' of github.com:bbedward/DankMaterialShell
This commit is contained in:
@@ -823,7 +823,7 @@ Item {
|
|||||||
parentScreen: barWindow.screen
|
parentScreen: barWindow.screen
|
||||||
widgetThickness: barWindow.widgetThickness
|
widgetThickness: barWindow.widgetThickness
|
||||||
isAtBottom: SettingsData.dankBarPosition === SettingsData.Position.Bottom
|
isAtBottom: SettingsData.dankBarPosition === SettingsData.Position.Bottom
|
||||||
visible: SettingsData.getFilteredScreens("systemTray").includes(barWindow.screen)
|
visible: SettingsData.getFilteredScreens("systemTray").includes(barWindow.screen) && SystemTray.items.values.length > 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,13 +10,14 @@ IconImage {
|
|||||||
property real contrastOverride: 1
|
property real contrastOverride: 1
|
||||||
|
|
||||||
readonly property bool hasColorOverride: colorOverride !== ""
|
readonly property bool hasColorOverride: colorOverride !== ""
|
||||||
|
readonly property string uniqueId: `systemLogo_${Math.random()}`
|
||||||
|
|
||||||
smooth: true
|
smooth: true
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
layer.enabled: hasColorOverride
|
layer.enabled: hasColorOverride
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
Proc.runCommand("systemLogo", ["sh", "-c", ". /etc/os-release && echo $LOGO"], (output, exitCode) => {
|
Proc.runCommand(uniqueId, ["sh", "-c", ". /etc/os-release && echo $LOGO"], (output, exitCode) => {
|
||||||
if (exitCode !== 0) return
|
if (exitCode !== 0) return
|
||||||
const logo = output.trim()
|
const logo = output.trim()
|
||||||
if (logo === "cachyos") {
|
if (logo === "cachyos") {
|
||||||
|
|||||||
Reference in New Issue
Block a user