96 Commits

Author SHA1 Message Date
baldurk 856c838def Update copyright years to 2026 and fix copyright ranges
* In a previous update in 2021 many copyright ranges were truncated
  accidentally, and some files have been copy-pasted with wrong years. These
  dates have been fixed based on git history and original copyright messages.
2026-01-05 14:17:28 +00:00
baldurk 2322e165de Update copyright years to 2025 2025-03-14 18:54:37 +00:00
baldurk 1ad23f64ca Use hack to customise expander colour in treeview branches. Closes #3319 2024-05-17 11:41:53 +01:00
baldurk 9f4f0e6aa1 Update copyright years to 2024 2024-02-12 11:04:52 +00:00
baldurk 54df5d5ca7 Tweak rendering of slider controls in RDStyle 2023-12-11 11:56:27 +00:00
Dan Hawson 442b48bb77 Mesh exploder
New 'Exploded' visualisation mode in BufferViewer with new exploder controls
hidden when not in 'Exploded' mode.

Change 'solidShading' and 'solidShadeMode' to 'visualisation' and
'visualisationMode'.

Hide the 'highlightVerts' widget when using 'Exploded' vis for both
real-estate and practical implementation reasons.
2023-12-09 11:40:30 +00:00
baldurk 9d39b8e1a8 Reformat code for clang-format 15 2023-09-05 11:02:08 +01:00
William Pearson afb4d76dd2 Blend pixel history widget background color with selection color
Before, if a row was selected, the color was completely replaced, which
makes the color preview column completely useless for that row.

This change also fixes some inconsistencies with how the selection hover
works on tree widgets; previously part of the row was not highlighted.
2023-08-10 10:59:32 +01:00
Jake Turner 75d7e06eb5 Handle non-square checkboxes : adjust to make them square
Extension of 7452e29cec
2023-07-30 14:51:18 +01:00
Jake Turner e0bb46979f Change RenderDoc style checkboxes to use checks for low contrast themes
Include InidicatorCheckBox style to match style change in 7452e29cec
2023-07-29 17:27:42 +01:00
baldurk 68ff839dd6 Make gcc happier with escaped \\ in comments 2023-07-26 23:13:48 +01:00
baldurk 7452e29cec Change RenderDoc style checkboxes to use checks for low contrast themes
* Deliberately low contrast themes like the dark theme can have issues showing a
  box that is filled vs just a plain rectangle which is harder to read at a
  glance. Changing the fill to an X icon gives extra readability on the dark
  theme.
2023-07-26 14:40:23 +01:00
William Pearson afbe26768d Draw arrows next to all tool buttons with menus
Before, only MenuButtonPopup had an arrow. This makes it more obvious
as to whether the button will immediately do something when clicked or
if it will open a menu to choose a specific action.
2023-04-14 19:04:15 +01:00
William Pearson 4c45c07160 Move subControlRect for CC_ToolButton to RDTweakedNativeStyle
This means the full rect won't be returned for SC_ToolButtonMenu if it
is used in a context where the default style doesn't expect the menu.

This is a separate commit to isolate future changes to this function.
2023-04-14 19:04:15 +01:00
baldurk d47e79ae07 Update copyright years to 2023 2023-02-01 12:23:32 +00:00
baldurk fcdea67879 Update copyright years to 2022 2022-02-17 17:38:32 +00:00
baldurk a0ec249c75 Fix compilation with older Qt versions 2021-07-01 20:29:46 +01:00
baldurk fe81f57316 Remove recent filters button in favour of styling a fake combo box
* The filter icon was confusing since it had a 'refresh' badge instead of
  'save/load/recent' type badge, and making the latter readable in a few pixels
  is not feasible. Having the combo dropdown with saved filters is as intuitive
  and works in-line.
2021-07-01 15:15:04 +01:00
baldurk 5a1f6fdba8 Elide tool button text if the button isn't large enough 2021-07-01 15:15:04 +01:00
baldurk e3eb2ee754 Fix sorting for texture viewer texture list 2021-04-20 13:51:41 +01:00
baldurk c6be4f7834 Fix highlighting of active thumbnail preview
* This was broken in fa674a59b6 where the style
  overrode the widget's foreground role. Changed to only use the custom
  light/dark role when the desired role is Text (or WindowText).
2021-02-22 12:38:43 +00:00
Mikko Rasa fa674a59b6 Consistently use outlineBrush() for drawing borders 2021-02-08 11:43:37 +00:00
baldurk 026da176bb Update copyright years to 2021 2021-01-13 13:56:10 +00:00
baldurk b0f07dfee4 Fix some style issues with new Qt versions 2021-01-08 15:39:02 +00:00
baldurk 220ee1b3e6 Ensure RDStyle sets application palette properly 2020-08-27 17:57:09 +01:00
baldurk 9fba077537 Add a couple of other missing QPainterPath includes 2020-06-07 00:44:35 +01:00
baldurk 8fa93105f2 Fix some casts/calculations to keep PVS Studio happy
* It identifies some potential overflows which we know likely won't happen, but
  the fixes are harmless.
* Some issues are definitely bad, though not actual bugs.
2020-01-21 18:28:56 +00:00
baldurk 2916c0f9f7 Update copyright years to 2020 2020-01-06 16:20:45 +00:00
baldurk ff08748238 Ensure all files have trailing new-lines and enforce with clang warning 2019-12-02 20:28:05 +00:00
baldurk 878d4140c3 Fix support for checkable menu items in RDStyle 2019-09-05 11:48:48 +01:00
baldurk 6203909791 Expose replay options to the UI
* The defaults can be configured from the settings menu, and there's a new "Open
  Capture with Options" menu option to open a capture with different options
  temporarily.
2019-08-27 18:51:56 +01:00
baldurk a66185b38a Fix use of deprecated QFontMetrics::width() 2019-07-09 17:34:32 +01:00
baldurk 86ff87863e Update copyright years to 2019 2019-02-01 18:32:13 +00:00
baldurk c8cf35eb83 Don't disable itemview wordwarp workaround for QTBUG-14949 in 5.11
* It doesn't seem to be fixed.
2019-02-01 18:32:12 +00:00
baldurk c567268902 On dark themes, BrightText should be white still 2018-10-29 17:23:11 +00:00
baldurk 07fa9a4a94 Add padding next to check indicators in item views for RDStyle 2018-10-23 14:23:11 +01:00
baldurk d84479463d Ensure we leave enough room in submenu rects for the arrow 2018-10-23 14:23:10 +01:00
baldurk 3ddeea088c Draw a divider in toolbuttons with menu dropdowns 2018-08-09 16:56:49 +01:00
baldurk 85cddfff07 Fix display calculation overflowing for large scrollbars 2018-07-12 15:33:50 +01:00
baldurk d9bab79dbc Allow clicking on labels of collapse group boxes to toggle 2018-06-13 09:17:03 +01:00
baldurk 8ef0d847ce [Coverity] Remove redundant if() check where both branches are identical 2018-05-08 12:39:10 +01:00
baldurk 644217bcbf Workaround for QTBUG-14949, eliding multi-line itemview items breaks 2018-05-03 12:35:49 +01:00
baldurk 9617bfc390 Add support in RDStyle for checkboxes on group boxes 2018-04-26 12:41:35 +01:00
baldurk 0a91f649f8 Use anti-aliasing for drawing menu items 2018-02-24 23:22:23 +00:00
baldurk 08738f270c Use Highlight/HighlightedText for highlighted menu items, show mnemonics 2018-02-22 19:49:48 +00:00
baldurk 2588207201 Fix tab bar size calculation to account for tab margin 2018-02-22 16:22:51 +00:00
baldurk 4a2242f0a1 Make checkerboard colours update immediately when theme changes 2018-02-21 14:29:36 +00:00
baldurk 9a6a45ca48 Reduce minimum tab width. Refs #866
* I'd like a smarter sizing scheme for tabs but unfortunately making it
  dependent on the widget size leads to unpredictable behaviour as the
  tab sizes aren't always updated at the right times.
2018-02-19 00:52:15 +00:00
baldurk 08457a329e Add itemview header drawing to RDStyle 2018-02-19 00:52:14 +00:00
baldurk 1b5e96f363 Fix sizing/positioning of checkbox indicators in item view items 2018-02-19 00:52:14 +00:00