Skip to content

Dark mode support#4638

Merged
bethac07 merged 14 commits intomasterfrom
dark_mode
Dec 13, 2022
Merged

Dark mode support#4638
bethac07 merged 14 commits intomasterfrom
dark_mode

Conversation

@gnodar01
Copy link
Copy Markdown
Member

@gnodar01 gnodar01 commented Sep 2, 2022

Fix for #4632 and #4627

- replace custom button mixin with bitmap button that works in dark mode
- add update icon on button
- cleanup still necessary
@gnodar01 gnodar01 marked this pull request as draft September 2, 2022 00:40
- replace all instances of cornerbuttonmixin with cornerlabelrenderer
- some cleanup
CornerButtonGrid is no longer a subclass of CornerButtonMixin, but
instead invokes CornerLabelRenderer, so the resulting grid object
doesn't have `fn_clicked`, `tooltip` and `label` as attributes.
Create getter/setters so it setting these properties on the grid, sets
them on the `CornerLabelRenderer` object that the grid object has as an
attribute.
default renderers drew white borders, which is ugly in dark mode
implement custom renderers using highlight colours to achieve similar
look to the regular `Grid`
wxPython >= 4.2.0 uses wxWidgets >= 3.2.0 which is compiled against a
newer version of webkit, which doesn't allow loading local resources
(in this case images); instead convert them to base64 data urls and pass
those to the html
- only veto events on http navigation, else content will load in screen
- fix path resolution to icons and base64 encode them
- fix various outdated links in html
- resolves #4627
- remove comments
- resolves #4632
@gnodar01 gnodar01 marked this pull request as ready for review September 8, 2022 20:01
@gnodar01 gnodar01 requested a review from bethac07 September 8, 2022 20:02
@bethac07
Copy link
Copy Markdown
Member

I... dont' know what happened with the rebase?

Copy link
Copy Markdown
Member

@bethac07 bethac07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome job!

@bethac07 bethac07 merged commit 2ae4f55 into master Dec 13, 2022
@bethac07 bethac07 deleted the dark_mode branch December 13, 2022 22:09
bethac07 added a commit that referenced this pull request Aug 8, 2023
bethac07 added a commit that referenced this pull request Aug 8, 2023
* Recreate #4638 in 4.2.x

* Version that actually opens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants