mirror of
https://git.pumpin.online/funkpower/menologion.git
synced 2026-10-22 18:57:14 +00:00
The Horologion is the Book of Hours: the fixed portions of the services themselves. This shows the day's commemorations, its fast and its season, which is a Menologion. Naming it for a book whose contents it does not carry was a real error and worth the churn to correct. typikon already uses the word internally, for menologion.py and the data file it loads. That is not a collision: typikon provides a menologion, this displays one. Renamed throughout, not just the repo: the two scripts, the QML component and its three qmldir modules, MENOLOGION_COLORS, ~/.config/menologion/colors.json, the eww widgets and scss variables, the waybar class. Verified standalone and embedded in a foreign shell, and the smoke suite still passes. Also drops the em dashes from the prose.
48 lines
1.3 KiB
QML
48 lines
1.3 KiB
QML
//@ pragma UseQApplication
|
|
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
import Quickshell
|
|
import Quickshell.Wayland
|
|
import "."
|
|
import "modules"
|
|
import "services"
|
|
|
|
// A runnable widget on its own — `quickshell -p quickshell/shell.qml`.
|
|
//
|
|
// It sits on the background layer, so it behaves like part of the wallpaper:
|
|
// always under your windows, never stealing a click. Drop the Menologion
|
|
// component into an existing shell instead if you already have one.
|
|
ShellRoot {
|
|
Variants {
|
|
model: Quickshell.screens
|
|
|
|
PanelWindow {
|
|
required property var modelData
|
|
screen: modelData
|
|
|
|
WlrLayershell.layer: WlrLayer.Background
|
|
WlrLayershell.namespace: "menologion"
|
|
exclusionMode: ExclusionMode.Ignore
|
|
color: "transparent"
|
|
|
|
anchors { top: true; right: true }
|
|
margins { top: 24; right: 24 }
|
|
|
|
implicitWidth: Config.width
|
|
implicitHeight: content.implicitHeight
|
|
|
|
ColumnLayout {
|
|
id: content
|
|
anchors.fill: parent
|
|
|
|
Menologion {
|
|
// Leave empty to follow `typikon --set-default`, or name a
|
|
// jurisdiction here: "rocor", "antiochian", "oca", ...
|
|
Component.onCompleted: Typikon.jurisdiction = ""
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|