-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter button doesn't use correct color #12630
Comments
Hello, I'm an aspiring GSOC 2020 candidate with experience building react applications. May I be assigned to this issue? |
Sure you are welcome to work on it. |
@aaronraimist Has this been fixed already ? Isn't it how it's supposed to be as in the picture below ? If there is another way to reproduce the issue, please let me know, I would also like have a go at this issue. |
No it is not fixed. You have to be using a custom theme to be able to notice it. For example it is easy to notice using this theme: https://raw.githubusercontent.com/aaronraimist/riot-web-themes/master/Geeko%20Dark/Geeko%20Dark.json You can install custom themes with matrix-org/matrix-react-sdk#4148 |
The file you'll probably want to edit to fix this is https://github.com/matrix-org/matrix-react-sdk/blob/develop/res/themes/light-custom/css/_custom.scss |
Ok thank you @aaronraimist I am working on it I am hoping to send PR as soon as possible. I will be sure to comment on this thread for guidelines. |
@aaronraimist The custom theme URL text box is not getting enabled for me. How to get it enabled? I'm not able to get it from the link you mentioned above to 'install custom themes'. |
I fear this cannot be fixed in The search box has no color properties assigned in the first place, so this needs to be added in, I guess, Also, I guess, some hover properties would need to be defined, like for example also for the explore button in https://github.com/matrix-org/matrix-react-sdk/blob/develop/res/css/structures/_LeftPanel.scss#L159-L161 … the scss variable used here (for both elements), in my opionion, should NOT be |
EDIT: I fear the approach below does not work as the color is indeed overwritten by some other seclector … In
The same can already be found for the explore button/icon in This does not, yet, fix the color of the search ICON. Not sure where this icon is defined … |
Unfortunately I don’t quite figure out how to solve this. Help wanted and needed. Thank you! |
Currently it uses the svg as a background image, it'd need to be changed into using an svg css mask if you want its colour to be changeable in css. |
@t3chguy Hm, not sure on how to correctly convert this. I tried, in input[type=text].mx_textinput_icon,
input[type=search].mx_textinput_icon {
padding-left: 36px;
//background-repeat: no-repeat;
//background-position: 10px center;
//color: $notice-secondary-color;
mask: url('$(res)/img/feather-customised/search-input.svg');
mask-repeat: no-repeat;
mask-position: 10px center;
background-color: $notice-secondary-color;
}
// FIXME THEME - Tint by CSS rather than referencing a duplicate asset
input[type=text].mx_textinput_icon.mx_textinput_search,
input[type=search].mx_textinput_icon.mx_textinput_search {
//background-image: url('$(res)/img/feather-customised/search-input.svg');
//background-color: $notice-secondary-color;
color: $notice-secondary-color;
} But that results in the placeholder/input text not being seen: PS: The
|
yeah so it has to be on the |
Tried it exactly like it’s for the |
You might need to mess with position relative on the parent and position absolute with a top:0, left:0 on the ::before |
I fear there’s no |
Conclusion, for now: I don’t think there’s much we can do in CSS alone. Maybe some HTML re-structuring would be needed, splitting Hopefully someone else will be able to fix this. |
Should hopefully be fixed in the new room list (once custom themes are supported). |
* Use Rust crypto stack universally Ignore the `feature_rust_crypto` and `RustCrypto.staged_rollout_percent` settings, and just use RustCrypto everywhere. * Remove labs setting for rust crypto * Remove support for legacy crypto stack in `StorageManager` We're not going to use the legacy stack any more. * Update docs on `Features.RustCrypto` * Remove now-unreachable `tryToUnlockSecretStorageWithDehydrationKey` * Comment out test which doesn't work * fix typo
The Explore button right next to it uses
timeline-text-secondary-color
for its text color but the Filter button text color is always white no matter what custom theme variables you use.The Filter button should use
timeline-text-secondary-color
for its text color.The text was updated successfully, but these errors were encountered: