Skip to content

add settings for reader screen margin#223

Merged
daveallie merged 12 commits intocrosspoint-reader:masterfrom
fischer-hub:marginsettings
Jan 5, 2026
Merged

add settings for reader screen margin#223
daveallie merged 12 commits intocrosspoint-reader:masterfrom
fischer-hub:marginsettings

Conversation

@fischer-hub
Copy link
Contributor

@fischer-hub fischer-hub commented Jan 3, 2026

Summary

  • What is the goal of this PR?
  • This PR adds a setting to control the top left and right margins of the reader screen in 4 sizes (5, 10, 20, 40 pt?) and defaults to SMALL which is equivalent to the fixed margin of 5 that was already in use before.
  • What changes are included?

Additional Context

  • Add any other information that might be helpful for the reviewer (e.g., performance implications, potential risks, specific areas to focus on).

@fischer-hub fischer-hub marked this pull request as ready for review January 3, 2026 12:57
@lukestein
Copy link
Contributor

Noting this may interact with #198

{"Bookerly", "Noto Sans", "Open Dyslexic"}},
{"Reader Font Size", SettingType::ENUM, &CrossPointSettings::fontSize, {"Small", "Medium", "Large", "X Large"}},
{"Reader Line Spacing", SettingType::ENUM, &CrossPointSettings::lineSpacing, {"Tight", "Normal", "Wide"}},
{"Reader Screen Margin", SettingType::ENUM, &CrossPointSettings::screenMargin, {"5", "10", "20", "40"}},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it might be better in this case to have the actual values of 5, 10, 20, 40 be stored in the settings object instead of the enum options. It will mean it won't clash with changes to other existing enums. This is one of the first settings (besides the sleep timeout and refresh frequency) where the value is the setting.

Can you please create a new SettingType called VALUE and support setting values here. It may require some additional tweaks to SettingInfo to setup a few static constructors to make creating the settingsList a bit easier with all the different types.

@itsthisjustin
Copy link
Contributor

FYI I also added this in #219 haha

@fischer-hub
Copy link
Contributor Author

FYI I also added this in #219 haha

Where? I don't see any changes related to the reading screen margin in your PR, maybe Im missing something?

@fischer-hub fischer-hub requested a review from daveallie January 4, 2026 15:27
@itsthisjustin
Copy link
Contributor

FYI I also added this in #219 haha

Where? I don't see any changes related to the reading screen margin in your PR, maybe Im missing something?

Dave asked me to remove them for a cleaner PR

@daveallie
Copy link
Member

Thanks for this, given the continued conflicts from this and other's PR as there are a lot of settings changes coming through and the structural changes to setting setup, I've stepped into resolve the conflict and make a few small tweaks to get it merged.

@daveallie daveallie merged commit 9f95b31 into crosspoint-reader:master Jan 5, 2026
1 check passed
yingirene pushed a commit to yingirene/crosspoint-reader that referenced this pull request Jan 16, 2026
* **What is the goal of this PR?**
* This PR adds a setting to control the top left and right margins of
the reader screen in 4 sizes (5, 10, 20, 40 pt?) and defaults to `SMALL`
which is equivalent to the fixed margin of 5 that was already in use
before.
* **What changes are included?**

* Add any other information that might be helpful for the reviewer
(e.g., performance implications, potential risks, specific areas to
focus on).

---------

Co-authored-by: Dave Allie <[email protected]>
Unintendedsideeffects pushed a commit to Unintendedsideeffects/crosspoint-reader that referenced this pull request Feb 17, 2026
## Summary

* **What is the goal of this PR?** 
* This PR adds a setting to control the top left and right margins of
the reader screen in 4 sizes (5, 10, 20, 40 pt?) and defaults to `SMALL`
which is equivalent to the fixed margin of 5 that was already in use
before.
* **What changes are included?**

## Additional Context

* Add any other information that might be helpful for the reviewer
(e.g., performance implications, potential risks, specific areas to
focus on).

---------

Co-authored-by: Dave Allie <[email protected]>
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.

4 participants