Commit Graph

16 Commits

Author SHA1 Message Date
Mark Liversedge
eaa067a075 Fix ChartBar Button Sizes on Mac
.. was using the wrong font metrics
2014-06-12 11:54:25 +01:00
Mark Liversedge
5cb3ccf05d Window Style Part 2 of 3
.. apply Flat styling across all the widget painting

.. only use WHITE as the flat color for now, in part 3
   we will look at user customisation and updating the
   toolbar and sidebar buttons to also be flat.
2014-06-01 13:18:30 +01:00
Mark Liversedge
47dd807204 Window Style Part 1 of 3
.. refactor linear gradients out of the widgets
   such as toolbar, chartbar, sidebaritem etc

.. GCColor::linearGradient() now returns a gradient
   that is reused across the codebase

.. in Part 2 we will add a colour and flat style
   for the linearGradient

.. in Part 3 we will tidy up the styling for buttons
   and toolbuttons to adopt flat or metal styling too
2014-06-01 11:33:05 +01:00
Mark Liversedge
4b967c742e Add Chart now back on Chart Bar
.. so at least chart adding should be easier and no more
   UX issues.

.. need to look to add other menu options there; add page, athlete,
   chart settings.
2014-04-09 15:51:43 +01:00
Mark Liversedge
a25e6c681b Add menu button to chart bar
.. code lost and reinstated, need to write the code
   to show the chart menu when it is clicked.

.. just pushing this code to get it back into the repo
   as it was lost accidentally with some other recent changes
2014-04-09 12:52:33 +01:00
Mark Liversedge
37f21d20ff Fix ButtonBar paint error
.. caused by an eventFilter not returning false and therefore
   always filtering out the events on the chartbar and buttons.
2014-03-14 08:26:13 +00:00
Mark Liversedge
14031a0063 Fix SEGV on add chart with Qt5
.. and also selects the first chart on the chartbar at startup.
2014-03-12 13:28:01 +00:00
Mark Liversedge
fa2a88abc0 Oops needed to set Min Width not Fixed
.. otherwise if smaller than window leaves a nasty
   blank render to the right of the buttonbar.
2014-03-11 21:20:44 +00:00
Mark Liversedge
2916d5f4ee Fixup button bar with lots of texts 2014-03-11 20:57:41 +00:00
Mark Liversedge
a073acc78d UX Fixups
.. chart bar scroll left and right when too many charts
.. set background in ride plot
.. chart menu says 'More...' instead of down tick
2014-03-10 19:40:22 +00:00
Mark Liversedge
3c81052572 ChartBar Buttons in a QScrollArea
.. ready to animate / scroll when more items to show than
   will fit in the button bar space.
2014-03-09 17:40:26 +00:00
Mark Liversedge
be064c2e9e Honour Font preferences in Side/Scope/Chart bar 2014-03-09 08:13:57 +00:00
Mark Liversedge
4b387d6bd6 Update ChartBar button text
.. when editing it in the chart settings
2014-03-08 20:47:39 +00:00
Mark Liversedge
1b68203046 TabBar to ScopeBar Mac Fixups
.. using QtMacButton not GcScopeButton
2014-03-08 12:08:27 +00:00
Mark Liversedge
27a4479e03 Fix Scope/ChartBar Font Size on Windows
.. it was size 8 for some bizarre reason
2014-03-08 11:49:49 +00:00
Mark Liversedge
358a3511f1 Replace Tabbar with a Scopebar
.. Only tested on Linux

.. Now going to check on Mac and Qt5

.. Also does not yet support re-ordering tabs
   nor scrolling when there are too many to show.
   This will come in future updates.
2014-03-08 11:36:05 +00:00