yashsingh1/xdaforums huggingface dataset:
[prjkt.io] creeve4:
No, but they use colors from the style I had to modify:

<style name="DualToneDarkTheme">
<item name="backgroundColor">@color/dark_mode_icon_color_dual_tone_background</item>
<item name="fillColor">@color/dark_mode_icon_color_dual_tone_fill</item>
<item name="singleToneColor">@color/dark_mode_icon_color_single_tone</item>
</style>

Those statusbar icons use backgroundColor and fillColor. I added these to my theme and defined them as the same hex values in SystemUI, but the icons are completely invisible.

From my theme:

<style name="DualToneDarkTheme">
<item name="backgroundColor">#3d000000</item>
<item name="fillColor">#7a000000</item>
<item name="colorControlNormal">#ff666666</item>
</style>
[prjkt.io] djdarkknight96:
Hmm might try adding back the @ and define in colors
[prjkt.io] creeve4:
That seems to break SystemUI, my screen won't turn on after enabling the theme, even after a reboot. Had to use substratumrescue.

This is a fun project!
[prjkt.io] djdarkknight96:
Themer life lol
[prjkt.io] fozinahwi:
Hey People !!

I asked a question On StackOverflow:

https://stackoverflow.com/q/57029680/9346298

PLease help me T_T
[prjkt.io] djdarkknight96:
You can't use svg need to be png or vector and has to be exact same pallette size as original image. I used vector and set my size to their status bar using signal_icon_size dimensions. Using vector is must more efficient render faster. Search how to make android vectors. Android studio has an asset generator you can create vectors.
[prjkt.io] fozinahwi:
ha,

I think I didnt explain myself well.

Im designing these svg on illustrator but I import them to Android Studio via their New Vector asset tool that convert them to Vector drawables but i cant get the exact dimensions however I solved in the end it was 38x26 px and It worked out.

Now Im stuck with their color Tint. the original asset files in the template changed their tints normally when the action bar is light but my icons remain white. I dont know whats wrong. I need to talk to someone that can examine the code and tell me whats wrong :crying:
[prjkt.io] djdarkknight96:
Yeah this was tricky, they use attributed tone colors in systemui but the attribute isn't working like it should. ?fillColor attribute so we hijacked ?colorControlNormal instead and added it to the tone styles DualToneDarkTheme and DualToneLightTheme and just use same color for fillColor .
[prjkt.io] fozinahwi:
use same colors in styles for fill ?

and btw what is Drawable-night ? is it just for night mode ? I didnt find a folder like that in my systemui file
[prjkt.io] djdarkknight96:
Sorry misread, night folders are for dark mode.

No they are in regular values/colors.xml and values/styles.xml search "tone" in both you'll see them
[prjkt.io] fozinahwi:
ok ? I searched tone in res/values/colors.xml and found these. what should I do with them:confused:

and even if how did the original icons from template shift through tones without additional coding in their xml file ? there was nothing additional added there just a plain icon and yet they became black when light action bar occur
[prjkt.io] djdarkknight96:
Look in styles also you'll see how they used them and the attributes I'm talking about...now I think about it I only had to trick the nav bar icons, my bad, android should tint status bars no matter the image using those tone colors. Battery on Samsung was my only issue. But those are the colors tinting status bar icons depending on bg color
[prjkt.io] fozinahwi:
Im really sorry but I dont understand what you mean.

what is the solution

could it be because Iam moving the new xml to \src\main\assets\overlays\com.android.systemui\type2_CustomIcons ? maybe I should leave them in res/drawable folder ?
[prjkt.io] djdarkknight96:
Sorry I was confused myself, the status bar icons are tinted in java using those tone styles and colors. You only need to adjust the colors in colors.xml to what you'd want them to be in each set.

For example I use accent colors for status bars so I set the #ff000000 ones to #ff787878 for neutral looking icons on dark and light apps but #ffffffff I leave.....unless I want actual colors then I just use color codes to them all both #ffffffff and #ff000000

See in screenshots how they look. Just editing colors with my custom icons.

Navbar icons.....That's what was hard!
[prjkt.io] fozinahwi:
Ok I got U, I need to fix colors.xml but the question is : why the system wont tint the new icons I have replaced ? Should I include a reference or something ? thats all what im asking.. why is the new icons wont tint
[prjkt.io] djdarkknight96:
They should, unless you have some tint= line in your vectors killing it?
[prjkt.io] fozinahwi:
I have compared the old icons with mine and I didnt find something that would count as a tint code or related to tint.

attached files shows the old icon and my icon the old one is longer becase every segment of the wifi icon is a patch.
[prjkt.io] djdarkknight96:
Looks ok to me. Not really sure unless you have something else breaking it.
[prjkt.io] fozinahwi:
who should I ask Its really frustrating :crying::crying::crying:
[prjkt.io] djdarkknight96:
What OS are you theming? Pie oreo? AOSP or Stock? Also what device?
[prjkt.io] fozinahwi:
Aosip derpest rom

Redmi note 5

Android Pie
[prjkt.io] djdarkknight96:
Hmm my purple screenshot is aosp also so I know it's possible and should be the same on all android because 3rd party apps use it. Check those colors and styles I suggested and if they are present remove them from your theme. Just the styles, Keep the colors.
[prjkt.io] Snowby123:
If I wanted to learn to create my own themes, where should I start?
[prjkt.io] djdarkknight96:
Read the Read.me in the template and you'll also need to know how to theme apk's already. Try searching here in XDA, Google and YouTube. We will help you move theme code to template but we aren't here to teach theming.

https://github.com/substratum/template

Hope that helps

DJ
[prjkt.io] BealeStBluesBoy:
Hi, I want to use substratum to theme my stock pie rom, I have a Mi A2. I'm already rooted with Magisk. Does substratum alter system partition? Thanks!
[prjkt.io] SXUsr:
Anyone having issues with the updated Google Messaging app on Oreo? I've started from scratch with the updated apk but it simply wont retrieve any parents from the messaging app. I've tried...

@*com.google.android.apps.messaging:style
@com.google.android.apps.messaging:style
*com.google.android.apps.messaging:style

...I've added the attrs.xml but it just doesn't work. I've tried a modified public.xml but then I just get "first value not attr" or something like that.

I've also rolled back one Substratum apk but that doesn't work either so I'm stumped.
[prjkt.io] djdarkknight96:
You sure the style just didn't move to v23 or v21. Kinda hard to help without details of the code.
[prjkt.io] SXUsr:
The code is in values/styles.xml.

If I change...

<style name="BugleTheme.HomeActivity" parent="@style/BugleToolbarTheme.Lockup">
<item name="android:windowBackground">@color/conversation_background_m2</item>
</style>

to...

<style name="BugleTheme.HomeActivity" parent="@*com.google.android.apps.messaging:style/BugleToolbarTheme.Lockup">
<item name="android:windowBackground">@*android:drawable/background_holo_dark</item>
</style>

I get the error retrieving parent error and just can't fathom out why all of a sudden it's not working any more.
[prjkt.io] djdarkknight96:
You added attrs.xml to values?
[prjkt.io] SXUsr:
Yes. Just had another play around and noticed I'd left the unmodified colors.xml in the values folder, so I removed that and got attrs.xml errors, fixed them and now it's ok. Kind of frustrating that Substratum didn't report the colors.xml as the issue, but hey ho.
[prjkt.io] SXUsr:
It's happened again. Updated Messages today and it wouldn't open with a Substratum message about there being a conflict, so I disabled the overlay and when I tried to reinstall it I get the following...

Report:
» [com.google.android.apps.messaging]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//res/values/styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name '@*com.google.android.apps.messaging:style/Base.V14.Theme.GoogleMaterial.Dark'.
» [com.google.android.apps.messaging]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//res/values/styles.xml:11: error: Error retrieving parent for item: No resource found that matches the given name '@*com.google.android.apps.messaging:style/Platform.ThemeOverlay.AppCompat.Dark'.
» [com.google.android.apps.messaging]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//res/values/styles.xml:15: error: Error retrieving parent for item: No resource found that matches the given name '@*com.google.android.apps.messaging:style/BugleToolbarTheme'.
» [com.google.android.apps.messaging]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//res/values/styles.xml:19: error: Error retrieving parent for item: No resource found that matches the given name '@*com.google.android.apps.messaging:style/BugleToolbarTheme.Lockup'.
» [com.google.android.apps.messaging]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//res/values/styles.xml:23: error: Error retrieving parent for item: No resource found that matches the given name '@*com.google.android.apps.messaging:style/BugleTheme'.
» [com.google.android.apps.messaging]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//res/values/styles.xml:27: error: Error retrieving parent for item: No resource found that matches the given name '@*com.google.android.apps.messaging:style/BugleToolbarTheme'.
» [com.google.android.apps.messaging]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//res/values/styles.xml:50: error: Error retrieving parent for item: No resource found that matches the given name '@*com.google.android.apps.messaging:style/Theme.GoogleMaterial.Dark.NoActionBar'.
» [com.google.android.apps.messaging]: Installation of "com.google.android.apps.messaging" has failed.

I've decompiled the new apk, added the new attrs.xml and still get the same error message. All the resources are in the new styles.xml so again, I just don't grasp why the same method I've used and still use on other apps is giving me issues with messages.

What am I missing?
[prjkt.io] djdarkknight96:
Well by that log styles you added changed or were removed on the stock app you need to fix them or remove them. I just updated my theme and it's working fine.
[prjkt.io] SXUsr:
I've solved it. I removed those lines from styles and got a load of other errors in a few layout files. I'd missed adding @*com.google.android.apps.messaging: to an [MENTION=1057247]font[/MENTION] and [MENTION=403934]Color[/MENTION], and now it looks as it should. So the problem seems to be Substratum not reporting the correct errors as the original lines I was having an issue with now work without issue.
[prjkt.io] djdarkknight96:
The log isn't perfect no, but if you compare "diffmerge is what I use" old apk vs new you can see what to change in theme. Also yes it will show logs in stages values then layouts then drawables. Just how the logging works.
[prjkt.io] Walhalla:
hey guys. I want to modify the "keyguard_status_bar.xml" layout of the SystemUI of my OnePlus 8 Pro. I got all working, but now it doesn't show the text in the statusbar anymore that no sim is inserted. What needs to be done that this booleans are correctly set? I think that this is the problem.

systemui:showAirplaneMode="true" systemui:showMissingSim="true"
[prjkt.io] djdarkknight96:
Some attributes within the app that aren't using android: are skipped by OMS so we have been moving them to styles with great success. Need to hijack unused style "holo ones are good to use" example:

app:id="@id/example" <---remove from your layout.xml

style="Hijacked_Holo_Style" <---add to your layout.xml

<style name="Hijacked_Holo_Style" parent="@style/example_parent">

<item name="*package.name:id">example</item>

</style> <---add to style.xml

Hope that helps
[prjkt.io] Walhalla:
thank you very much for your tip with moving the attributes into a style.

Do you think there is any harm to the SystemUI when I define the items / attributes in this style?

<style name="Base.Theme.AppCompat" parent="@*com.android.systemui:style/Base.V28.Theme.AppCompat" >
</style>

Or how do I find unused styles in the styles.xml of the SystemUI? I tried creating my own style, but that way setting that attributes didn't work. Is it even possible to define stuff that isn't present in the to themed app?

Thanks for your time.

regards

Walhalla360
[prjkt.io] djdarkknight96:
Yeah we can't create any resources but you can use holo styles and yes you did that correctly and yes works for systemui. Just search for holo in styles just use the name no need to add it's attributes.
[prjkt.io] MysteryIII:
Well I don't know where to ask else, so I do it here:

In my opinion Material Design is somewhat boring, so I'm searching for a theme with 3D icons (Status, (Quick)settings) and if possible multi color Icons. Is there anything like that? Or at least in this direction?

As far as I searched I only found flat single colored icons with changeable color.

As an example an old S3 Theme.

Thanks for any information on this matter.
[prjkt.io] djdarkknight96:
Not since they are tint with light and dark mode. They will be flat only.
[prjkt.io] MysteryIII:
Oh, that's very disappointing, however thanks for the answer.
[prjkt.io] LBensley:
Has anyone had any luck theming the viper4arise app with substratum, I managed to theme the top bar but couldn't find the colour for the main section of the app?
[prjkt.io] LBensley:
Could you explain how you did this? struggling a bit over here
[prjkt.io] vykintazo:
So, for Google Calculator, you need to add these lines in styles.xml inside "Theme.Calculator" (or whatever theme is defined in AndroidManifest.xml):

<item name="android:textColor">#your_color</item> <!--this changes DEG/RAD text-->
<item name="android:textColorSecondary">#your_color</item> <!--this changes three dot symbol-->

However (maybe someone can help me with this thing?) I found imposible to change date and toolbar text color in calculator history...

Well hope that helps :)
[prjkt.io] LBensley:
Thank you for the swift reply I'll try that when I next get on my laptop!

And do you mean where it says "today"? I've only got calculator history for today?
[prjkt.io] vykintazo:
Yes
[prjkt.io] LBensley:
I've changed it but not sure what one it is, it's just a value in the colors.xml
[prjkt.io] LBensley:
It's the calculator_accent_color sorry haven't been on my laptop till now, That is for the date, not sure about toolbar text colour
[prjkt.io] vykintazo:
Ok, thanks, will try!
[prjkt.io] LBensley:
I used your method for the 3 Dot menu and mode text however its now changed the status bar colour to gray instead of blue
[prjkt.io] vykintazo:
Yes, I've just checked that mine statusbar is also grey (despite I set those dots and mode text to green) but it fits into my primaryColor, so i thought that its because of my primary color. I'll try to dig deeper into this a bit later.
[prjkt.io] LBensley:
Tell me what you find!
[prjkt.io] LBensley:
Is it possible to add your own custom color to the framework to use across apps or do you just have to change a predefined one?
[prjkt.io] Spannaa:
You need to use a color that's already defined - there's loads of holo and legacy colors you can use (for now).
[prjkt.io] LBensley:
Thank you!
[prjkt.io] Al Gore:
Is it possible to change boot animations with substratum? Not with themes, but like it used to be on CM theme manager - you drop zip files and choose the animation in the boot animation tab in the UI?
[prjkt.io] vykintazo:
Yes. And please read all sources mentioned in first post before posting yours, one of them tells everything about structure of theme.
[prjkt.io] Al Gore:
It's not there unless the only solution is to create your own theme and pack it as apk
[prjkt.io] vykintazo:
OK, I'm very sorry that I misunderstood you. The only method I know is to compile apk with zip in it.
[prjkt.io] chintu1234:
Can we add custom background to settings???

I remember being able to do it earlier in MM based substratum but now in N if i create a new background_holo_dark.png in drawable-nodpi <item name="android:windowBackground">@android:drawable/background_holo_dark</item>

i get an error: Resource is not public.
[prjkt.io] arnabJ:
Hello, I am trying to theme AOSP Deskclock.

The theme is using Theme.AppCompat as parent.

How can I change it using Susbtratum?

Adding in overlay error comes up while applying theme that [MENTION=262514]style[/MENTION]/Theme.AppCompat was not found.

So how can I refer to AppCompat themes and resources any idea?
[prjkt.io] djdarkknight96:
Can't add resources, you'll need to hijack something like a holo Drawable not used. Then use it in window background in styles.

Needs package name like this:

@*com.android.deskclock:style/Theme.AppCompat

Anything internal needs package name like that @ drawables @ Color etc etc @ null don't and @ Android just needs @*android to work.

Hope that helps!

DJ
[prjkt.io] arnabJ:
Thanks for replying but I know this.

I am having issue referencing Android support v7 Appcompat themes.

It's a library and not part of Android framework and not an application either.

Can resources in the support library be referenced?
[prjkt.io] djdarkknight96:
You need to work the code like I posted, it's Substratum OMS use nothing to do with library.
[prjkt.io] LBensley:
Having some trouble finding out how to change the brightness slider active colour (not the thumb) and the button thumb

Been looking for ages
[prjkt.io] djdarkknight96:
Not sure I understand, the progress track and bar?
[prjkt.io] chintu1234:
So i was able to add a background to my settings by using background_holo_dark.png as well as background_holo_png.xml placed in drawable-anydpi-v23

Both of them work

But here is the tricky part

The bg is correctly shown on my device only(Oneplus 2) but when applied to my friend's Oneplus 3T there is no bg in his settings also tried on Yureka 4g. Tried both the PNG way as well as XML vector but the bg is shown only on my device.
[prjkt.io] djdarkknight96:
Not sure how its working on your device lol background_holo_dark.xml is already in Drawable. Replace it in any dpi with your image. So background_holo_dark.png and it would work fine. Don't add the xml at all.
[prjkt.io] chintu1234:
Ok for some reason after both of my friends cleared theme cache the bg is now visible for them.

But i need one suggestion. My png is of 200kb while the xml is of 700kb.

I know png will look a little blured on bigger devices and xml will scale properly without quality loss but since there is such a high high difference in file size will performance too will be affected??
[prjkt.io] djdarkknight96:
Nah not much. 700MB yeah but kb nah.
[prjkt.io] LBensley:
The white bar, it's themed now and started randomly working, is there a way to force refresh a theme? Should change the version each time or fully uninstall the app it self?
[prjkt.io] djdarkknight96:
Yeah I had that issues once, thought it wasn't working so I cleared subs cache and rebooted after uninstalling the systemui overlay then reinstalled and it works. But unless I cleared cache reboot didn't work alone. Was driving me insane lol
[prjkt.io] LBensley:
I changed it to a new project and it then worked but I don't want to be doing that each time! But because it's not updating I don't know what colour changed what
[prjkt.io] djdarkknight96:
You can just go build/clean project instead of doing another project. That should clear things up nicely. Also I noticed systemui and framework overlays need to be uninstalled once in a while if your testing and applying them a lot like I do. Drove me nuts thinking my edits weren't working until I did something I knew works but didn't show. I liked eclipse better, none of this crap happened but Google retired it. ?
[prjkt.io] LBensley:
That's a shame and yeah I'll have to try that then! Thanks
[prjkt.io] chintu1234:
Is there any value to change in the framework or systemUi overlay to make the quicksetting tiles to have a different accent rather than the plain white??

I tried changing the value of <color name="system_accent_color"> to RED but nothing changed. Read few tutorials and some comments in Subs group and i can do it by editing the vectordrawable xml related to each quicksetting tile but i remember able to change the tile colors in MM based substratum by just changing values in colors.xml and style.xml

Has it changed in N?? Is vectordrawable the only thing to go now to change QS accent color?
[prjkt.io] LBensley:
What are the colours for the expanded conversation notifications for the likes of what's app, Allo and SMS apps?
[prjkt.io] atvking:
I have a very simple (noob) question... Can you use Substratum to theme Google Play Music? I don't have access to my Nexus 7 right now to test for myself and I can't seem to find the answer online. If it's possible, could someone suggest a nice dark theme that has the ability? Thanks!
[prjkt.io] Spannaa:
Yes, a lot of dark themes include a ply music overlay.

Try Domination.
[prjkt.io] djdarkknight96:
I thought the same but looks to me everyone is adding the vector drawables. I was too lazy so I just changed the text. The external tiles can be themed with a color. Just system needs each vector. It might be possible to do in layouts though. I never tried, I got it in settings to work with one color using layouts.

It's the remote colors, I think I added a layout for that as well.
[prjkt.io] djdarkknight96:
It can be mostly inverted, some areas need that primary Color because it's used on text too. But for the most part it's theme-able.
[prjkt.io] Xxk1ll3rxX:
Just a quick question, since I'm new to making themes. I know the programs that you need to use such as TMA and Android studio to make a substratum theme. But the question I have is that why do all tutorials out there always mention that you need root to be able to make your own theme? I'm using the S8 version of Substratum which obviously doesn't require root but does that mean I have to defeat the purpose of Substratum and root my phone just so I can make a theme?
[prjkt.io] zelendel:
No. You don't need root. That was an old requirement. No longer needed.
[prjkt.io] Xxk1ll3rxX:
Alright thanks. My last question before I am set for making my own desired overlays are what is the best method to edit existing .apk overlays themes?As you know a lot of theme developers that try to theme a specific element/app just make an easy to install apk overlay rather than making a theme that you need the substratum app to apply. So I'm guessing it would be fairly easy to edit them?
[prjkt.io] zelendel:
Not any more. They are now encrypted so you can't decompile them. There are plenty of tutorials around. It will take about a week of reading before you are ready.
[prjkt.io] RockStar8:
A question. I know substratum still doesn't support system wide icon pack applying and The Flash said that this feature is coming soon I wanted to know how Pitch Black Origins changed the themed app icons system wide?
[prjkt.io] djdarkknight96:
If themes decide to include icons then it will just be another image to add. Most don't because so many icon packs out there.
[prjkt.io] RockStar8:
Thank you !
[prjkt.io] sharkie405:
Is it possible to have submenus or sublistings within type 2 and type 3 folders?
[prjkt.io] djdarkknight96:
You mean like add a type inside a type? No I asked this too.
[prjkt.io] sharkie405:
Yeah, I've tried it various ways, but like you said, it just doesn't work. Figured I'd asked on the off chance that I was missing something.
[prjkt.io] djdarkknight96:
Post a screenshot of what you mean. I was thinking the reply field in notifications.