mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-07 05:55:37 -05:00
Fix launcher fallback
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import QtQuick
|
import QtQuick
|
||||||
import qs.Common
|
import qs.Common
|
||||||
import qs.Services
|
import qs.Services
|
||||||
|
import qs.Widgets
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: root
|
id: root
|
||||||
@@ -18,14 +19,23 @@ Rectangle {
|
|||||||
color: launcherArea.containsMouse || isActive ? Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.12) : Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.08)
|
color: launcherArea.containsMouse || isActive ? Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.12) : Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.08)
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
visible: nerdFontAvailable && OSDetectorService.osLogo
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: nerdFontAvailable && OSDetectorService.osLogo || "apps"
|
text: OSDetectorService.osLogo
|
||||||
font.family: nerdFontAvailable && OSDetectorService.osLogo ? "Symbols Nerd Font" : Theme.iconFont
|
font.family: "Symbols Nerd Font"
|
||||||
font.pixelSize: Theme.iconSize - 6
|
font.pixelSize: Theme.iconSize - 6
|
||||||
font.weight: Theme.iconFontWeight
|
font.weight: Theme.iconFontWeight
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DankIcon {
|
||||||
|
visible: !nerdFontAvailable || !OSDetectorService.osLogo
|
||||||
|
anchors.centerIn: parent
|
||||||
|
name: "apps"
|
||||||
|
size: Theme.iconSize - 6
|
||||||
|
color: Theme.surfaceText
|
||||||
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: launcherArea
|
id: launcherArea
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user