feat: per-display brightness range controls and proportional sync#52
Open
RhoMancer wants to merge 1 commit into
Open
feat: per-display brightness range controls and proportional sync#52RhoMancer wants to merge 1 commit into
RhoMancer wants to merge 1 commit into
Conversation
Add min/max brightness caps per display with clickable range labels in the GUI.
Add proportional brightness sync mode that maintains relative position across
displays with different ranges. Both sync modes (exact and proportional) are
mutually exclusive. Fixed-width slider values and range labels prevent layout
shifts. Range labels are hidden by default behind a "Set brightness range" toggle.
- New: brightness_range.c state module for min/max per display (GSettings a{si})
- New: range_label.c clickable editable label component
- Modified: show_displays.c with min/max labels, proportional sync, linked
brightness respects individual caps
- Modified: gschema with min/max-brightness-per-display and sync mode keys
- Modified: slider format to fixed-width (%3d) to prevent resizing
👾 Generated with [Letta Code](https://letta.com)
Co-Authored-By: Letta Code <noreply@letta.com>
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Files changed
install_files/com.sidevesh.Luminance.gschema.xml.in— min/max-brightness-per-display keys, proportional sync keysrc/constants/main.c— new GSettings key definessrc/states/brightness_range.c— new state module for min/max per displaysrc/states/is_brightness_linked.c— added proportional sync getter/settersrc/ui/components/display_brightness_scale.c— min/max range support, fixed-width formatsrc/ui/components/link_brightness_check_button.c— renamed label for claritysrc/ui/components/range_label.c— new clickable editable label for min/max valuessrc/ui/screens/show_displays.c— min/max labels, proportional sync, linked brightness respects capsTest plan
👾 Generated with Letta Code