Open tipa opened 3 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We do this to keep the amount of open issues to a manageable minimum. In any case, thanks for taking an interest in this software and contributing by opening the issue in the first place!
Bump. Issue still present and I would appreciate if it could be fixed. It's holding me back from switching to dark theme
Interesting, the chosen primary color is close to that of the background color, hence why it doesn't work that well in this case, it's also not accessibility friendly.
Bump. Issue still present and I would appreciate if it could be fixed. It's holding me back from switching to dark theme
I recommend in the mean time to add the following custom Less
code from the dashboard:
@custom-lighter-color: #eee;
.Button--primary {
color: @custom-lighter-color;
}
.define-header(@config-colored-header);
.define-header(true) {
@header-bg: @primary-color;
@header-color: @custom-lighter-color;
@header-control-bg: mix(#000, @header-bg, 10%);
@header-control-color: mix(@custom-lighter-color, @header-bg, 60%);
}
Thanks for your response @SychO9. Your workaround works well for the header, but there are still some issues. For example, the text color on the tags switches with the theme, which is undesirable as the text background (= the tag color) is the same, no matter if dark or light theme. This now causes "dark" tags to be hard to read:
If you have some workaround for that as well, I would be very thankful.
Of course a fix in flarum-core
would be great as well ;)
I found an addition to the workaround that fixes the problem that I explained in my comment above:
.TagLabel.colored .TagLabel-text {
--tag-color: @custom-lighter-color;
}
And this makes the header text readable:
.Hero h2 {
color: @custom-lighter-color;
}
Bug Report
Current Behavior Texts on colored background switched to dark text/icon color
Steps to Reproduce
Expected Behavior Texts on colored backgrounds continue to use a bright color. Other web apps (Twitter, GitHub) also mostly use bright colors on their colored buttons
Screenshots
Environment