Skip to content

Made Sidebar standalone - #3

Open
albert-tomanek wants to merge 10 commits into
actuallyaridan:mainfrom
albert-tomanek:main
Open

Made Sidebar standalone#3
albert-tomanek wants to merge 10 commits into
actuallyaridan:mainfrom
albert-tomanek:main

Conversation

@albert-tomanek

Copy link
Copy Markdown
Contributor

Ok, I've made the sidebar into a self-contained widget. It's now called Aero::Sidebar but I've left it in the source of the contorl panel for now so that it's still easy to add more features later if needed. Instead of adding SidebarLinks, I've written it so that you pass items to it as QActions. Where each action opens the associated page when triggered.

QActions can also contain an icon for the action, and the sidebar displays it if you turn that on:

Screenshot_20260818_011515

Also if you set the elevatedPriv property on a QAction then it displays the shield like in Windows.

Screenshot_20260818_010256

see here for code

I think it would be worth considering making the whole app use QActions to store links. Where each action would just have a different callback attached to ::trigger() depending on whether it was a command action or a page action. And you could then have eg. this widget read the and display the icon and elevatedPriv fields from each inserted action in the same way that the Sidebar does.

Screenshot_20260818_013425

Also you need to have the latest libAeroQt installed and set the system application style to libAeroQt-Kvantum (which it now installs) for the sidebar background to draw properly, because I've moved the background drawing code into the Qt theme.

@albert-tomanek

albert-tomanek commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

Used a real QToolBar. libAeroQt now styles the buttons in them for you

Screenshot_20260818_185201

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