Support longer project names on title and fix window buttons not visible on minimum window size #360

Closed
opened 2026-04-05 16:20:15 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @yw4z on 3/10/2026

fixes https://github.com/OrcaSlicer/OrcaSlicer/issues/12723

tested on windows, ubuntu

CHANGES

• Created a painted control because AddLabel method has fixed size. new control expands and uses all available space
• removed invisible publish button to get perfect center. i assume this feature already not in use on orca

WINDOW BUTTONS NOT VISIBLE ON MINIMUM WINDOW WIDTH

• This issue only exist on windows

Before- causes window buttons not fitting to frame.
After - all fits to frame
Screenshot-20260311141345

ADDS SUPPORT FOR LONGER PROJECT NAMES

Before - title not showing all name because it has a fixed size with 300px
After - shows all name because it uses all available space
Screenshot-20260311141612

ELLIPSIZES LONG NAMES WHEN REQURIED

Before - method was static
explorer_6M2Lqu7Sla

After - supports longer names and ellipsizes end dynamically
explorer_l92JNSeq3v

FIXES THIN TITLEBAR ON LINUX

Left windows Right one Linux
Before - Linux titlebar uses less height for titlebar
Screenshot-20260312013547
After- Heights almost matches
Screenshot-20260312013531

*Originally created by @yw4z on 3/10/2026* fixes https://github.com/OrcaSlicer/OrcaSlicer/issues/12723 tested on windows, ubuntu ## CHANGES • Created a painted control because AddLabel method has fixed size. **new control expands and uses all available space** • removed invisible publish button to get perfect center. i assume this feature already not in use on orca ## WINDOW BUTTONS NOT VISIBLE ON MINIMUM WINDOW WIDTH • This issue only exist on windows **Before**- causes window buttons not fitting to frame. **After** - all fits to frame <img width="759" height="203" alt="Screenshot-20260311141345" src="https://github.com/user-attachments/assets/99da00ea-48f9-449b-9dd0-0bd023e041d8" /> ## ADDS SUPPORT FOR LONGER PROJECT NAMES **Before** - title not showing all name because it has a fixed size with 300px **After** - shows all name because it uses all available space <img width="1263" height="216" alt="Screenshot-20260311141612" src="https://github.com/user-attachments/assets/f0b4d16a-882f-46c0-8918-d0b8a7c34007" /> ## ELLIPSIZES LONG NAMES WHEN REQURIED **Before** - method was static ![explorer_6M2Lqu7Sla](https://github.com/user-attachments/assets/b0aedc44-6bb8-4b25-a4e3-8e3fea25fd44) **After** - supports longer names and ellipsizes end dynamically ![explorer_l92JNSeq3v](https://github.com/user-attachments/assets/aa0b3ff1-c155-46b5-abc8-cf8167db18a7) ## FIXES THIN TITLEBAR ON LINUX Left windows Right one Linux **Before - Linux titlebar uses less height for titlebar** <img width="806" height="84" alt="Screenshot-20260312013547" src="https://github.com/user-attachments/assets/3507016c-e46b-4fb1-86de-29978ee48e2b" /> **After- Heights almost matches** <img width="819" height="110" alt="Screenshot-20260312013531" src="https://github.com/user-attachments/assets/3b28d32b-d054-406e-85bc-939609ba1aef" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OrcaSlicer#360