Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move the left side bar to a horizontal top bar #940

Closed
jwrober opened this issue Mar 16, 2022 · 0 comments · Fixed by #951
Closed

Move the left side bar to a horizontal top bar #940

jwrober opened this issue Mar 16, 2022 · 0 comments · Fixed by #951
Labels
enhancement New feature or request gui This issue requires changes to the user interface
Milestone

Comments

@jwrober
Copy link
Collaborator

jwrober commented Mar 16, 2022

Is your feature request related to a problem? Please describe.
Part of #750 -- Replace the left side bar to a more modern horizontal top bar that uses SVG graphics. Add toggle icons in upper right to hide/unhide or enable/disable the messages, server (chat) and mini-map widgets.

Describe the solution you'd like
Some sample mock up wireframes from a Discord conversation:
image

image

image

Clicking varying elements on the bar will bring up existing screens, widgets, or reports:

  • Nation Flag & Name [click opens player/nations dialog]
  • Turn # / Year
  • Population (using K, M modifiers to reduce numerals needed)
  • Number of Cities [click opens city dialog]
  • Current Government [click opens option to change gov't?]
  • Global Warming Chance
  • Nuclear Winter Change
  • Spaceship status [click opens spaceship dialog]
  • Culture Score (+ per turn increase) [click opens a widget giving more details?]
  • Gold (surplus/deficit) [click opens economy dialog]
  • Tax, Science and Lux Rates [click opens tax rates dialog]
  • Research Target (BPT / % Complete / Turn Complete) [click open research]
  • Units Pending Orders (Units Affected by UWT) [click opens dialog]
  • Toggle chat widget, toggle messages widget, toggle mini-map widget
  • Help menu
  • Amount of time to TC / Manual Turn Icon

Describe alternatives you've considered
Obviously it works as is, but the whole point is to modernize the client. Pretty much all the commercial 4x games out there are using this UI feature.

Additional context
None

@jwrober jwrober added enhancement New feature or request gui This issue requires changes to the user interface labels Mar 16, 2022
@jwrober jwrober added this to the v3.0-beta.2 milestone Mar 16, 2022
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 20, 2022
We decided that the contents of the sidebar would be shown above the map. Start
this change by moving the widget to the top.

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 20, 2022
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 20, 2022
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 20, 2022
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 20, 2022
QToolButton seems a better fit because it already provides most of the options
we need. Maybe the top bar should become a fully-fledged QToolBar.

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 20, 2022
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 20, 2022
Replace custom-drawn icons with a standard QToolButton feature. Now they're
even SVG-capable!

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 20, 2022
This simplifies the code a little.

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 20, 2022
We'll rethink the layout later; for now, simplify it.

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 20, 2022
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 20, 2022
It was used for a tiny graphical tweak of little importance.

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 20, 2022
Themes can use QSS if they want something special.

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 20, 2022
It's not perfect but we're not after perfection. It works.

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 20, 2022
It wasn't used, removing it simplifies the code.

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 20, 2022
I'm not sure what this will become so I'm implementing an ugly placeholder that
does the job.  We may want to implement the switching with a set of mutually
exclusive QAction.

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 20, 2022
Some of them can only be clicked (e.g. End Turn).

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 20, 2022
Use a specialized class instead of a special mode of top_bar_widget.

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 20, 2022
Use a near-copy of tax_rates_widget instead of a special mode of
top_bar_widget.

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 20, 2022
Code cleanup after moving the functionality to separate classes.

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 25, 2022
We decided that the contents of the sidebar would be shown above the map. Start
this change by moving the widget to the top.

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 25, 2022
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 25, 2022
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 25, 2022
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 25, 2022
QToolButton seems a better fit because it already provides most of the options
we need. Maybe the top bar should become a fully-fledged QToolBar.

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 25, 2022
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 25, 2022
Replace custom-drawn icons with a standard QToolButton feature. Now they're
even SVG-capable!

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 25, 2022
It was used for a tiny graphical tweak of little importance.

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 25, 2022
Themes can use QSS if they want something special.

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 25, 2022
It's not perfect but we're not after perfection. It works.

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 25, 2022
It wasn't used, removing it simplifies the code.

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 25, 2022
I'm not sure what this will become so I'm implementing an ugly placeholder that
does the job.  We may want to implement the switching with a set of mutually
exclusive QAction.

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 25, 2022
Some of them can only be clicked (e.g. End Turn).

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 25, 2022
Use a specialized class instead of a special mode of top_bar_widget.

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 25, 2022
Use a near-copy of tax_rates_widget instead of a special mode of
top_bar_widget.

See longturn#940.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Mar 25, 2022
Code cleanup after moving the functionality to separate classes.

See longturn#940.
jwrober pushed a commit that referenced this issue Mar 27, 2022
We decided that the contents of the sidebar would be shown above the map. Start
this change by moving the widget to the top.

See #940.
jwrober pushed a commit that referenced this issue Mar 27, 2022
jwrober pushed a commit that referenced this issue Mar 27, 2022
jwrober pushed a commit that referenced this issue Mar 27, 2022
jwrober pushed a commit that referenced this issue Mar 27, 2022
QToolButton seems a better fit because it already provides most of the options
we need. Maybe the top bar should become a fully-fledged QToolBar.

See #940.
jwrober pushed a commit that referenced this issue Mar 27, 2022
jwrober pushed a commit that referenced this issue Mar 27, 2022
Replace custom-drawn icons with a standard QToolButton feature. Now they're
even SVG-capable!

See #940.
jwrober pushed a commit that referenced this issue Mar 27, 2022
This simplifies the code a little.

See #940.
jwrober pushed a commit that referenced this issue Mar 27, 2022
We'll rethink the layout later; for now, simplify it.

See #940.
jwrober pushed a commit that referenced this issue Mar 27, 2022
jwrober pushed a commit that referenced this issue Mar 27, 2022
It was used for a tiny graphical tweak of little importance.

See #940.
jwrober pushed a commit that referenced this issue Mar 27, 2022
Themes can use QSS if they want something special.

See #940.
jwrober pushed a commit that referenced this issue Mar 27, 2022
It's not perfect but we're not after perfection. It works.

See #940.
jwrober pushed a commit that referenced this issue Mar 27, 2022
It wasn't used, removing it simplifies the code.

See #940.
jwrober pushed a commit that referenced this issue Mar 27, 2022
I'm not sure what this will become so I'm implementing an ugly placeholder that
does the job.  We may want to implement the switching with a set of mutually
exclusive QAction.

See #940.
jwrober pushed a commit that referenced this issue Mar 27, 2022
Some of them can only be clicked (e.g. End Turn).

See #940.
jwrober pushed a commit that referenced this issue Mar 27, 2022
Use a specialized class instead of a special mode of top_bar_widget.

See #940.
jwrober pushed a commit that referenced this issue Mar 27, 2022
Use a near-copy of tax_rates_widget instead of a special mode of
top_bar_widget.

See #940.
jwrober pushed a commit that referenced this issue Mar 27, 2022
Code cleanup after moving the functionality to separate classes.

See #940.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gui This issue requires changes to the user interface
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant