WIP: Kernel UI: add maximize button support for skinned windows (bounty #283) #437

Draft
dMartian wants to merge 1 commits from dMartian/kolibrios:add-skinned-window-maximize into main
First-time contributor

Adds maximize/restore titlebar button support for skinned windows.

  • Adds skin button type 3 for maximize
  • Registers maximize as system button ID 0xFFFE
  • Routes the button to the existing window maximize/restore handler
  • Derives a maximize button for legacy skins from close/minimize geometry
  • Draws a generic maximize/restore glyph for skinned windows
  • Updates skin macros so new skins can declare maximize = [...]
  • Fixes kernel Makefile recipe indentation and default language for make kernel

Checks:

  • git diff --check
  • make -n kernel
Adds maximize/restore titlebar button support for skinned windows. - Adds skin button type 3 for maximize - Registers maximize as system button ID 0xFFFE - Routes the button to the existing window maximize/restore handler - Derives a maximize button for legacy skins from close/minimize geometry - Draws a generic maximize/restore glyph for skinned windows - Updates skin macros so new skins can declare maximize = [...] - Fixes kernel Makefile recipe indentation and default language for make kernel Checks: - git diff --check - make -n kernel
dMartian added 1 commit 2026-05-02 01:49:11 +00:00
Add skinned window maximize button support
Build system / Check kernel codestyle (pull_request) Successful in 28s
Build system / Build (pull_request) Successful in 9m34s
c9b666b292
Burer changed title from WIP: Kernel UI: add maximize button support for skinned windows to WIP: Kernel UI: add maximize button support for skinned windows (bounty #283) 2026-05-02 13:44:10 +00:00
Owner

Hi!

I tested yout PR. Basic functionality looks okay, but visuals definitely have problems.

  1. This new button should look just like other two buttons, without breaking the general style.
  2. Also, it should be positioned between other two buttons not at the left.
  3. Your friend mentioned that with your patch applied, none of the games launched. Did you tested this?

I understand that these changes will require editing all skins, but I am ready to help you with graphics if you explain what format is needed, and we can start with just default skin.

image.png
Hi! I tested yout PR. Basic functionality looks okay, but visuals definitely have problems. 1. This new button should look just like other two buttons, without breaking the general style. 2. Also, it should be positioned between other two buttons not at the left. 3. Your friend mentioned that with your patch applied, none of the games launched. Did you tested this? I understand that these changes will require editing all skins, but I am ready to help you with graphics if you explain what format is needed, and we can start with just default skin. <img width="337" alt="image.png" src="attachments/f494cad7-4ab2-4e65-874b-308a184519e7">
4.2 KiB
Member

May I suggest to add backwards compatibility; to have skins with or without maximize button.
It should not be so hard to do, and will ease the transition.

May I suggest to add backwards compatibility; to have skins with or without maximize button. It should not be so hard to do, and will ease the transition.
Some checks are pending
Build system / Check kernel codestyle (pull_request) Successful in 28s
Build system / Build (pull_request) Successful in 9m34s
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u http://git.kolibrios.org/dMartian/kolibrios add-skinned-window-maximize:dMartian-add-skinned-window-maximize
git checkout dMartian-add-skinned-window-maximize
Sign in to join this conversation.
No Reviewers
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KolibriOS/kolibrios#437