-
Notifications
You must be signed in to change notification settings - Fork 12
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
Feature request: theme support #41
Comments
This is half a bug and half an enhancement idk what to label it |
I don't even use labels I shouldn't be thinking about this. Anyway, the theme isn't applied because the "overflow" screens are actually fullscreen dialogs, and I'm not quite sure how I should make them themable. My initial thought is to set the dialog themes as an attribute of the activity theme (possibly two attributes, one for profile dialogs and one for overflows), but idk how easy that would be to implement. |
How is this supposed to be used? |
@adrcotfas you can override the AttribouterTheme in your app's styles.xml. That's the method I wrote in the docs, anyway. You could also declare the Attribouter's activity in your manifest, add |
I have multiple themes in my app which are changeable with a preference. |
@adrcotfas I meant the library's activity. If you want to change the theme during runtime, then the easiest option would be to create your own activity for Attribouter, then call |
That's exactly what I'm doing. The activity will use my theme but the dialogs will use the default or the overridden theme in this case. |
Whoa, I didn't respond to this. Were you able to get it working? I can verify that my suggestion works fine on my end; you can see a working example in Status, which currently has a dark theme in the beta channel. I may reopen this to improve the functionality, though, as this method of theming is a little finicky. Maybe provide a default light/dark theme, then have two methods such as |
@fennifith No worries but I stopped using this library in the end. |
Overwriting
@style/AttribouterTheme
is an option but it has its limitations if you have multiple themes in your app which can be switched.I tried creating a separate Activity and then attach an About fragment to it which is great because you can switch the theme in onCreate.
Unfortunately the theme is not maintained to a section with overflow "0" which opens a new view.
Is there a solution for this?
The text was updated successfully, but these errors were encountered: