summaryrefslogtreecommitdiff
path: root/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Widgets/StyledText.qml
diff options
context:
space:
mode:
authorAlexanderCurl <alexc@alexc.hu>2026-04-18 17:46:06 +0100
committerAlexanderCurl <alexc@alexc.hu>2026-04-18 17:46:06 +0100
commit70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69 (patch)
treeab1123d4067c1b086dd6faa7ee4ea643236b565a /raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Widgets/StyledText.qml
parent5d94c0a7d44a2255b81815a52a7056a94a39842d (diff)
downloadRaveOS-PKGBUILD-70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69.tar.gz
RaveOS-PKGBUILD-70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69.zip
Replaced file structures for themes in the correct format
Diffstat (limited to 'raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Widgets/StyledText.qml')
-rw-r--r--raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Widgets/StyledText.qml49
1 files changed, 0 insertions, 49 deletions
diff --git a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Widgets/StyledText.qml b/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Widgets/StyledText.qml
deleted file mode 100644
index 3c07ab1..0000000
--- a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Widgets/StyledText.qml
+++ /dev/null
@@ -1,49 +0,0 @@
-import QtQuick
-import qs.Common
-
-Text {
- property bool isMonospace: false
-
- FontLoader {
- id: interFont
- source: Qt.resolvedUrl("../assets/fonts/inter/InterVariable.ttf")
- }
-
- FontLoader {
- id: firaCodeFont
- source: Qt.resolvedUrl("../assets/fonts/nerd-fonts/FiraCodeNerdFont-Regular.ttf")
- }
-
- readonly property string resolvedFontFamily: {
- const requestedFont = isMonospace ? Theme.monoFontFamily : Theme.fontFamily;
- const defaultFont = isMonospace ? Theme.defaultMonoFontFamily : Theme.defaultFontFamily;
-
- if (requestedFont === defaultFont) {
- return isMonospace ? firaCodeFont.name : interFont.name;
- }
- return requestedFont;
- }
-
- readonly property var standardAnimation: {
- "duration": Appearance.anim.durations.normal,
- "easing.type": Easing.BezierSpline,
- "easing.bezierCurve": Appearance.anim.curves.standard
- }
-
- color: Theme.surfaceText
- font.pixelSize: Appearance.fontSize.normal
- font.family: resolvedFontFamily
- font.weight: Theme.fontWeight
- wrapMode: Text.WordWrap
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
- //renderType: Text.NativeRendering
-
- Behavior on opacity {
- NumberAnimation {
- duration: standardAnimation.duration
- easing.type: standardAnimation["easing.type"]
- easing.bezierCurve: standardAnimation["easing.bezierCurve"]
- }
- }
-}