1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-29 07:52:50 -05:00

Only material icons rounded

This commit is contained in:
bbedward
2025-07-18 18:58:01 -04:00
parent 8d87fca419
commit b3aa4719d9
5 changed files with 17 additions and 14 deletions

View File

@@ -77,8 +77,8 @@ PanelWindow {
color: Theme.background color: Theme.background
font.weight: Font.Medium font.weight: Font.Medium
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
width: Math.min(implicitWidth, 300) width: 300
elide: Text.ElideRight wrapMode: Text.WordWrap
} }
} }

View File

@@ -30,6 +30,13 @@ PanelWindow {
implicitHeight: Theme.barHeight - 4 implicitHeight: Theme.barHeight - 4
color: "transparent" color: "transparent"
Component.onCompleted: {
let fonts = Qt.fontFamilies();
if (fonts.indexOf("Material Symbols Rounded") === -1) {
ToastService.showError("Please install Material Symbols Rounded and Restart your Shell. See README.md for instructions");
}
}
Connections { Connections {
function onTopBarTransparencyChanged() { function onTopBarTransparencyChanged() {
root.backgroundTransparency = Prefs.topBarTransparency; root.backgroundTransparency = Prefs.topBarTransparency;

View File

@@ -13,8 +13,12 @@ Specifically created for [Niri](https://github.com/YaLTeR/niri).
This shell kinda depends on [Niri](https://github.com/YaLTeR/niri), but only for workspaces and the active window widget in TopBar. So it could be used on any other wayland compositor with minimal changes. This shell kinda depends on [Niri](https://github.com/YaLTeR/niri), but only for workspaces and the active window widget in TopBar. So it could be used on any other wayland compositor with minimal changes.
```bash ```bash
# Arch # 1 --- Material Symbols Font (if not present)
paru -S quickshell-git ttf-material-symbols-variable-git mkdir -p ~/.local/share/fonts && curl -L "https://github.com/google/material-design-icons/raw/master/variablefont/MaterialSymbolsRounded%5BFILL%2CGRAD%2Copsz%2Cwght%5D.ttf" -o ~/.local/share/fonts/MaterialSymbolsRounded.ttf && fc-cache -f
# Can also be installed from AUR on arch linux, paru -S ttf-material-symbols-variable-git
# 2 --- QuickShell (recommended to use a git build)
paru -S quickshell-git
``` ```
2. Install optional dependencies to unlock certain features 2. Install optional dependencies to unlock certain features

View File

@@ -8,16 +8,8 @@ Text {
property alias size: icon.font.pixelSize property alias size: icon.font.pixelSize
property alias color: icon.color property alias color: icon.color
property bool filled: false property bool filled: false
readonly property string iconFont : {
var families = Qt.fontFamilies();
if (families.indexOf("Material Symbols Rounded") !== -1) {
return "Material Symbols Rounded";
} else {
return "Material Icons Round";
}
}
font.family: iconFont font.family: "Material Symbols Rounded"
font.pixelSize: Theme.iconSize font.pixelSize: Theme.iconSize
font.weight: filled ? Font.Medium : Font.Normal font.weight: filled ? Font.Medium : Font.Normal
color: Theme.surfaceText color: Theme.surfaceText

View File

@@ -5,6 +5,7 @@ import qs.Modules
import qs.Modules.CenterCommandCenter import qs.Modules.CenterCommandCenter
import qs.Modules.ControlCenter import qs.Modules.ControlCenter
import qs.Modules.TopBar import qs.Modules.TopBar
import qs.Services
ShellRoot { ShellRoot {
id: root id: root
@@ -88,5 +89,4 @@ ShellRoot {
Toast { Toast {
id: toastWidget id: toastWidget
} }
} }