AttorneyOnline / AO2-Client

An off-the-cuff courtroom drama simulator
https://aceattorneyonline.com
GNU General Public License v3.0
61 stars 58 forks source link

Expanding Icons / Cascading Menus #882

Open Samevi opened 1 year ago

Samevi commented 1 year ago

With how many features are now present in the client, it's getting a bit difficult to create organized themes while also keeping a decently-sized window. This also hinders any attempts to create an easier-to-understand default theme. To fix this, I propose tucking some features away into cascading menus that expand from interactable icons. Attached is a mockup image demonstrating exactly what I mean by this.

Although the mockup specifically shows the buttons displayed when a character is in the "jud" position, this could be useful for features such as the volume sliders, or the chat function itself (eg. emotes, chat bar, showname bar) as well, making a much easier to organize UI overall and allowing for much smaller fully-functional themes.

mockup

stonedDiscord commented 1 year ago

https://www.youtube.com/watch?v=SGmpECiFF_c

Salanto commented 1 year ago

In theory this is possible if you put the QPushButton in a QGroupBox and connect its "pressed" signal to the "setVisible" slots of its buddies. You can unfortunately not set widgets hidden in designer. The signal stuff can be done internally inside your UI file, so it does not need extra code-consideration client wise.