1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-26 14:32:52 -05:00

greeter+lock: remove random facts

fixes #1475
This commit is contained in:
bbedward
2026-01-23 13:25:42 -05:00
parent 972fc534a4
commit 3a41f2f1ed
4 changed files with 2 additions and 101 deletions

View File

@@ -23,7 +23,6 @@ Item {
readonly property string xdgDataDirs: Quickshell.env("XDG_DATA_DIRS")
property string screenName: ""
property string randomFact: ""
property string hyprlandCurrentLayout: ""
property string hyprlandKeyboard: ""
property int hyprlandLayoutCount: 0
@@ -31,10 +30,6 @@ Item {
signal launchRequested
function pickRandomFact() {
randomFact = Facts.getRandomFact();
}
property bool weatherInitialized: false
function initWeatherService() {
@@ -58,7 +53,6 @@ Item {
}
Component.onCompleted: {
pickRandomFact();
initWeatherService();
if (isPrimaryScreen)
@@ -961,20 +955,6 @@ Item {
}
}
StyledText {
anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
anchors.margins: Theme.spacingL
width: Math.min(parent.width - Theme.spacingXL * 2, implicitWidth)
text: root.randomFact
font.pixelSize: Theme.fontSizeSmall
color: "white"
opacity: 0.8
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.NoWrap
visible: root.randomFact !== ""
}
DankActionButton {
anchors.bottom: parent.bottom
anchors.left: parent.left

View File

@@ -25,7 +25,6 @@ Item {
property string screenName: ""
property bool unlocking: false
property string pamState: ""
property string randomFact: ""
property string hyprlandCurrentLayout: ""
property string hyprlandKeyboard: ""
property int hyprlandLayoutCount: 0
@@ -41,15 +40,7 @@ Item {
pamState = "";
}
function pickRandomFact() {
randomFact = Facts.getRandomFact();
}
Component.onCompleted: {
if (demoMode) {
pickRandomFact();
}
WeatherService.addRef();
UserInfoService.getUserInfo();
@@ -61,11 +52,6 @@ Item {
lockerReadyArmed = true;
}
onDemoModeChanged: {
if (demoMode) {
pickRandomFact();
}
}
Component.onDestruction: {
WeatherService.removeRef();
if (CompositorService.isHyprland) {
@@ -1606,20 +1592,6 @@ Item {
}
}
}
StyledText {
anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
anchors.margins: Theme.spacingL
width: Math.min(parent.width - Theme.spacingXL * 2, implicitWidth)
text: root.randomFact
font.pixelSize: Theme.fontSizeSmall
color: "white"
opacity: 0.8
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.NoWrap
visible: root.randomFact !== ""
}
}
Pam {