X Tutup
Skip to content

Added "always show battery" toggle to clock widget#1799

Open
DemonicSavage wants to merge 8 commits intoMM2-0:mainfrom
DemonicSavage:battery-setting
Open

Added "always show battery" toggle to clock widget#1799
DemonicSavage wants to merge 8 commits intoMM2-0:mainfrom
DemonicSavage:battery-setting

Conversation

@DemonicSavage
Copy link

Probably not the best way to do it, but this is good for people like me who like hiding the status bar.

Not my proudest code, I'm not a Kotlin dev at all. If there are better ways of doing what I'm doing please let me know.

@DemonicSavage
Copy link
Author

What is going on? The original files had no newline at the end, my files also don't. It shouldn't be triggering a diff there

@DemonicSavage
Copy link
Author

Btw, this should probably be seen as a fairly rough draft. Especially the settings toggle, it's pretty ugly. Also, I'm not so sure about the ideal ranking. 10 seems fine for now though.

@MM2-0
Copy link
Owner

MM2-0 commented Feb 8, 2026

Maybe Battery should be a list preference with 3 options: "Never", "When low or charging" and "always"

@DemonicSavage
Copy link
Author

Makes sense, done.

@DemonicSavage
Copy link
Author

As this changes the current schema, I added the migration code.

Unless I'm missing something, this should probably be all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup