Page MenuHome

UI: Add file browser alternating row theme color
ClosedPublic

Authored by RedMser (RedMser) on Aug 26 2020, 4:28 PM.

Details

Summary

As part of this right-click select post, this adds an alternating row theme color to the file browser (similar to the outliner).

Add-on themes are updated in D8721

Diff Detail

Repository
rB Blender

Event Timeline

RedMser (RedMser) requested review of this revision.Aug 26 2020, 4:28 PM
RedMser (RedMser) created this revision.
RedMser (RedMser) edited the summary of this revision. (Show Details)Aug 26 2020, 4:54 PM

Looks good. @RedMser (RedMser) can you provide the updated themes? I'd rather commit these things all together so nothing is forgotten.

This revision is now accepted and ready to land.Aug 26 2020, 5:58 PM
RedMser (RedMser) added a comment.EditedAug 26 2020, 6:04 PM

can you provide the updated themes?

Since custom themes are part of the addons repository, I'm wondering, does arc diff work as expected for submodules as well (adding the theme changes to this revision)? Or what's the best way of uploading them (a second differential on the addons repo, etc.)?

IIRC arc does work there, but you will have to create a separate differential for it. But you can also just create a manual diff (e.g. with git diff > /some/path/name.diff in the add-on directory) and attach that here.

RedMser (RedMser) updated this revision to Diff 28195.EditedAug 26 2020, 6:25 PM
  • Update blender light theme to fit changes done to add-on themes
  • Changes to add-on themes: D8721

To create these, I copied the outliner's alternating row color + background color, then ensured that the text is still readable

Hans Goudey (HooglyBoogly) requested changes to this revision.EditedAug 26 2020, 6:51 PM

Good improvement here in my opinion, especially since the outliner already works this way.

I believe that the colors should be set consistently with the outliner though? If I copy the outliner colors to the file browser it looks fine to me.

Other than that, good to go I think. If you had a diff ready for the bundled themes I could commit that at the same time.

EDIT: I commented here before I saw Julian's review. Oops!

This revision now requires changes to proceed.Aug 26 2020, 6:51 PM

Fix blender dark theme via blender_theme_as_c.py

If you had a diff ready for the bundled themes I could commit that at the same time.

If it's easier to work with, then sure! :)
See D8721 (exactly the same as the previously-uploaded P1608)

Synchronizing the Outliner and File Browser options makes sense to me. The difference is barely noticeable anyway.

RedMser (RedMser) edited the summary of this revision. (Show Details)Aug 26 2020, 7:02 PM
  • Fix versioning code, as window background color was brighter in the past
This revision is now accepted and ready to land.Aug 26 2020, 11:45 PM