plugin: rust-side modules + theme services with serde-typed config
This commit is contained in:
parent
a86e90e927
commit
f34f3f2f4e
95 changed files with 2477 additions and 1011 deletions
|
|
@ -3,6 +3,7 @@ import Quickshell
|
|||
import Quickshell.Wayland
|
||||
import "." as M
|
||||
import "../services" as S
|
||||
import NovaStats as NS
|
||||
|
||||
PanelWindow {
|
||||
id: root
|
||||
|
|
@ -17,7 +18,7 @@ PanelWindow {
|
|||
if (_shown) {
|
||||
_winVisible = true;
|
||||
hideAnim.stop();
|
||||
if (S.Theme.reducedMotion) {
|
||||
if (S.ThemeUtil.reducedMotion) {
|
||||
content.opacity = 1;
|
||||
content.y = 0;
|
||||
} else {
|
||||
|
|
@ -25,7 +26,7 @@ PanelWindow {
|
|||
}
|
||||
} else {
|
||||
showAnim.stop();
|
||||
if (S.Theme.reducedMotion) {
|
||||
if (S.ThemeUtil.reducedMotion) {
|
||||
_winVisible = false;
|
||||
} else {
|
||||
hideAnim.start();
|
||||
|
|
@ -43,8 +44,8 @@ PanelWindow {
|
|||
margins.top: 0
|
||||
margins.left: Math.max(0, Math.min(Math.round(M.TooltipState.itemX - implicitWidth / 2), screen.width - implicitWidth))
|
||||
|
||||
implicitWidth: label.implicitWidth + S.Theme.barPadding * 2
|
||||
implicitHeight: label.implicitHeight + S.Theme.barPadding * 2
|
||||
implicitWidth: label.implicitWidth + NS.ThemeService.barPadding * 2
|
||||
implicitHeight: label.implicitHeight + NS.ThemeService.barPadding * 2
|
||||
|
||||
ParallelAnimation {
|
||||
id: showAnim
|
||||
|
|
@ -101,9 +102,9 @@ PanelWindow {
|
|||
anchors.centerIn: parent
|
||||
text: M.TooltipState.text.replace(/\n/g, "<br>")
|
||||
textFormat: Text.RichText
|
||||
color: S.Theme.base05
|
||||
font.pixelSize: S.Theme.fontSize
|
||||
font.family: S.Theme.fontFamily
|
||||
color: NS.ThemeService.base05
|
||||
font.pixelSize: NS.ThemeService.fontSize
|
||||
font.family: NS.ThemeService.fontFamily
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue