Feature: Absolute Center Anchor & Comprehensive Divider Improvements by Kr3db · Pull Request #130 · pctrade/end4-pC · GitHub
Skip to content

Feature: Absolute Center Anchor & Comprehensive Divider Improvements - #130

Open
Kr3db wants to merge 1 commit into
pctrade:mainfrom
Kr3db:feature/bar-improvements
Open

Kr3db wants to merge 1 commit into
pctrade:mainfrom
Kr3db:feature/bar-improvements

Conversation

@Kr3db

@Kr3db Kr3db commented Sep 12, 2026

Copy link
Copy Markdown

Hey! I've been working on some quality-of-life improvements for the Bar layout and the dividers. This PR introduces a absolute centering feature and adds missing customization/fixes for the dividers.

  1. Absolute Center Anchor (Middle Layout)

Feature: Added a "pin" button next to widgets in the Center layout settings (BarConfig.qml / LayoutSection.qml). Users can now pin exactly one widget to act as the absolute center anchor.
Logic: BarContent.qml was updated to intelligently split the middle layout array around the pinned widget. The pinned widget is forced into the exact center of the screen, while the remaining widgets flow to its left and right. This fully respects the existing Material 3 pill logic and works flawlessly with all layout styles.

  1. Divider Customization & Visual Fixes

Thickness Slider: Added a new slider in the settings to let users adjust the thickness of line dividers and the size of dot dividers.
Sub-Pixel Centering Fix: Removed an invisible trailing space ("• ") from the dot string and increased the default line width to 2px. This prevents sub-pixel rendering issues on Wayland/X11 where a 1px line in an even-numbered space would mathematically snap off-center.
Group Style Transparency: Added an isDivisor property to BarGroup.qml. Dividers no longer get drawn with an ugly background box when the user selects Separated or Segmented styles (they remain perfectly transparent).
Theme Adaptation: Changed the line divider color from the static colOutlineVariant to colOnLayer0 so it correctly adapts to theme/color changes just like the dot dividers do.

@Kr3db
Kr3db force-pushed the feature/bar-improvements branch from b16a1b1 to 1f2f6e1 Compare September 14, 2026 18:25
@Kr3db
Kr3db force-pushed the feature/bar-improvements branch from 1f2f6e1 to e3aaa6d Compare September 14, 2026 18:28
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.

1 participant