The previous stylesheet hack used to denote that the master pubkey widget is read-only makes the text unreadable in dark mode.
We could try to find a selection of background color and text color that works with each theme, but this is complex as there are actually 3 themes to handle:
- the white theme, used when the user selects the "default" theme and the OS is using a light theme
- the custom dark scheme used when the "dark" is selected in the options
- the OS dark theme used when "default" is selected and the OS theme is set to dark
Another option would be to set the widget as disabled, which imo looks readable in all thme, but then I would need to fight Qt with another hack to make the text selectabled, and fight the existing codebase to keep the overlay "Copy" button enabled when its parent line edit is disabled.
Instead, just remove the border from the widget so it looks less like an editable text widget.