Skip to content

Add option to hide AM/PM in digital widget - #488

Open
xhon-pelushi wants to merge 1 commit into
FossifyOrg:mainfrom
xhon-pelushi:digital-widget-optional-ampm
Open

Add option to hide AM/PM in digital widget#488
xhon-pelushi wants to merge 1 commit into
FossifyOrg:mainfrom
xhon-pelushi:digital-widget-optional-ampm

Conversation

@xhon-pelushi

Copy link
Copy Markdown

What changed and why

  • Added a "Show AM/PM" switch to the digital widget's configuration screen, following the same pattern as the existing background/text color options.
  • Default is on, so existing widgets keep their current appearance after updating.
  • Only affects the digital widget's 12-hour format; the analogue widget and app Settings are untouched, since AM/PM has no meaning there.

Tests performed

  • Built and installed on a Pixel 7 (API 35) emulator.
  • Config screen preview updates immediately when toggling the switch.
  • Added a live home-screen widget and confirmed the actual rendered widget (not just the preview) drops/restores "AM"/"PM".
  • Confirmed the switch hides itself when 24-hour format is enabled in Settings.
  • Confirmed the setting persists across reopening the config screen.
  • ./gradlew :app:compileFossDebugKotlin and ./gradlew detekt both clean.

Closes the following issue(s)

Closes #138

Adds a "Show AM/PM" switch to the digital widget's configuration
screen so 12-hour format users can drop the AM/PM suffix, which some
find redundant and wastes widget space.

Fixes FossifyOrg#138
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.

Make AM/PM in digital widget optional

1 participant