yashsingh1/xdaforums huggingface dataset:
[prjkt.io] KpChuck:
Hi. Can i reference other apks with substratum. For example could I use a colour from Spotify's colors.xml in systemui?
[prjkt.io] Spannaa:
No, you can only use the resources in the apk you're theming or those in framework-res
[prjkt.io] KpChuck:
The problem is that I'm trying to make a customisable statusbar clock so I want to separate the clock style from status_bar.xml so that the position and style can be separate option.

My question is how can I make something like this android:format24Hour="@string/status_bar_clock_24hr_format" referencing to a string with substratum?

I tried using any string from systemui.apk but that just messes things up.
[prjkt.io] KpChuck:
This is what i mean by messed up. The top left is meant to be an ordinary clock
[prjkt.io] Ouweshs28:
Finally a noob can learn

Will look foward learn theming

But help as far as i can xD
[prjkt.io] Spannaa:
Does it work if you reference the string with

android:format24Hour="@*com.android.systemui/string:status_bar_clock_24hr_format"

Maybe some of the 'pro' themers can suggest alternatives ?
[prjkt.io] dully79:
From our very own [MENTION=3605033]nicholaschum[/MENTION] this is a useful guide:

https://xdaforums.com/android/themes/guide-locating-hidden-values-random-t3240308

[MENTION=6842057]The Flash[/MENTION], maybe we can have a useful index of links in the op.
[prjkt.io] MajorHawk:
Thanks for the help.

Can you please post the link of the appropriate thread.
[prjkt.io] djdarkknight96:
https://xdaforums.com/apps/substratum/projekt-substratum-t3423623/page291
[prjkt.io] mobiluzman26:
can i use this theme app on my tablet?

arm processor,Android 4.1.1

pls help me
[prjkt.io] ElsaReyes:
Okay I have a question. I use the swift black theme, and when updating it I used to choose the last option under pick android version, 7.1.x OMS. But now that choice isn't availible anymore so I have no idea which of what is there to choose.

I use a Tab S, SM-T800 if that helps, and I'm using AICP.

I hope someone can help with this, I don't want to screw up my tab by choosing the wrong one. Thanks.
[prjkt.io] Primokorn:
AFAIK AICP is based on LineageOS so use Lineage + Nexus + Pixel
[prjkt.io] pehoko:
How to change theme to individual app or system app which is not listed in overlays?
[prjkt.io] Primokorn:
In a nutshell: decompile > add new package names > do your modifications > compile with your signature > uninstall the existing theme > install yours > never share this publicly.

Check the theming threads for further explanations.
[prjkt.io] zelendel:
This is not always an option. With the new setup for substratum thing are excrypted so decompiling the theme will break it and not allow it to be recompiled. The days of editing themes are coming to an end.
[prjkt.io] Primokorn:
Never touched Substratum. Thanks for the heads-up.
[prjkt.io] SXUsr:
Hoping someone can help me get started here, I've got Android Studio installed but trying to clone the template fails, downloading it and trying to install it also fails telling me I need an newer version of the fully updated Android Studio I already have installed?
[prjkt.io] Spannaa:
You need to use Android Studio Preview (currently 3.0 Beta 2) with substratum template kt-n.

Once this is installed, download the template as a zip and open it as an existing android studio project.
[prjkt.io] SXUsr:
Thanks, I figured it out after more googling and got it all set up last night. One last question as I feel pretty much set and ready to go, I don't quite grasp the "type" type folders and xmls in the overlays folders?
[prjkt.io] Spannaa:
Reference
[prjkt.io] SXUsr:
I was hoping for a better explanation as that doesn't do it in a similar manner to the instructions for setting up the theme template are a bit iffy.

Having finally managed to make a theme and installing it with no issues I'm not seeing any changes, even after disabling Sonys theme engine, plus Substratum seems a bit buggy on my X Compact anyway. Might come back to this later but for now I'll stick with what I know.

Thanks.
[prjkt.io] razr96:
I've been trying to remove the annoying white splash screen from apps using the following:

res/values/type1a.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="@*org.schabi.newpipe:Theme.AppCompat.Light.NoActionBar">
<item name="android:windowDisablePreview">true</item>
</style>
</resources>

So far it's worked on Newpipe, Kernel Adiutor, One Calculator and Master Password. But some apps, like Google Authenticator and Amaze file manager, just don't respond to it. The theme compiles with no errors but the splash screen is still there. Is there any reason why?
[prjkt.io] djdarkknight96:
I've never disabled them but not all apps are made the same. You'll have find what they used for the splash. Might be Google's library is different. Apps can use whatever so that's the issue you're seeing.
[prjkt.io] kombuka:
Do you know of a theme for Galaxy Tab S2 that makes the white background black? That is the only thing I'm interested in , nothing else. Just as if I were to use the invert option except it would only apply to the white background in menus and such, not pictures or anything else.
[prjkt.io] djdarkknight96:
I have no idea on Samsung
[prjkt.io] Clariosky:
Does anyone know how to deal with this issue on Pixel Android Oreo?

[IMG="https://i.imgur.com/aGyRgwx_d.jpg?maxwidth=640&shape=thumb&fidelity=medium"]https://i.imgur.com/aGyRgwx_d.jpg?maxwidth=640&shape=thumb&fidelity=medium[/IMG]

Thanks.
[prjkt.io] OSheden:
This is not related to theming. Please ask there: https://xdaforums.com/apps/substratum/projekt-substratum-t3423623
[prjkt.io] arnabJ:
Can you explain it further?

whatsapp:tbtnRadius="@*com.whatsapp:dimen/small_avatar_radius" whatsapp:tbtnForegroundOnly="true"

I am stuck here.

I get no resource identifier found for tbtnRadius & tbtnForegroundOnly when I try to compile my theme.

Edit: I hadn't added attars.xml file. Adding that with those 2 items fixed the issue.
[prjkt.io] :
Hi. How can i change the color of leters here? Are white as the background, so i can't see them..

I installed a theme, and installed only ui theme of another theme.

The only think i want to change is character color from white to black so i can see them.

Thanks, and sorry if i am of topic.
[prjkt.io] Spannaa:
The notification text colour is set in framework styles.

TextAppearance.Material.Notification.xxxxxx
[prjkt.io] Dulo_PL:
Hello,

I would like to change clock and data color on expanded status bar. But I have problem. I use code from AOSPA because I'm using ParanoidAndroid. It is pure code from AOSPA github. When I use it I see on my Nexus 5X SystemUI force close. I don't have idea how I can change this colors.

<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="TextAppearance.StatusBar.Expanded" parent="@android:style/TextAppearance.StatusBar" />

<style name="TextAppearance.StatusBar.Expanded.Clock">
<item name="android:textSize">@dimen/qs_time_expanded_size</item>
<item name="android:fontFamily">sans-serif-medium</item>
<item name="android:textColor">#ffffff</item>
</style>

<style name="TextAppearance.StatusBar.Expanded.Date">
<item name="android:textSize">@dimen/qs_date_collapsed_size</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#b2ffffff</item>
</style>

<style name="TextAppearance.StatusBar.Expanded.AboveDateTime">
<item name="android:textSize">@dimen/qs_emergency_calls_only_text_size</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#66ffffff</item>
</style>
</resources>
[prjkt.io] Spannaa:
If you're trying to do this via a substratum theme, you have to self-reference each @dimen entry and you don't need to include the TextAppearance.StatusBar.Expanded style as it's the same as stock.

<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="TextAppearance.StatusBar.Expanded.Clock">
<item name="android:textSize">@*com.android.systemui:dimen/qs_time_expanded_size</item>
<item name="android:fontFamily">sans-serif-medium</item>
<item name="android:textColor">#ffff0000</item>
</style>
<style name="TextAppearance.StatusBar.Expanded.Date">
<item name="android:textSize">@*com.android.systemui:dimen/qs_date_collapsed_size</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffff0000</item>
</style>
<style name="TextAppearance.StatusBar.Expanded.AboveDateTime">
<item name="android:textSize">@*com.android.systemui:dimen/qs_emergency_calls_only_text_size</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffff0000</item>
</style>
</resources>
[prjkt.io] Dulo_PL:
[/COLOR]

That's not what I was asking. I don't know how I can change colors. In this code I didn't change default color but I want to set dark clock and data.
[prjkt.io] Spannaa:
You just change the hex code for android:textColor in the three styles like I did in my example and add the styles to /android/res/values/styles.xml in the assets/overlays folder of your substratum theme.
[prjkt.io] Dulo_PL:
I tried to use pure AOSPA code and now your example. Substratum shows mi fail with parent again. I'm trying to fix it for 2 days.
[prjkt.io] Spannaa:
I just modified the styles you posted to work with subs and there were no parent styles shown.

Post the three styles (TextAppearance.StatusBar.Expanded.Clock/Date/AboveDateTime) in full from AOSPA.

[EDIT] Found them here - try this:

<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="TextAppearance.StatusBar.Expanded" parent="@*android:style/TextAppearance.StatusBar" />
<style name="TextAppearance.StatusBar.Expanded.Clock" parent="@*com.android.systemui:style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">@*com.android.systemui:dimen/qs_time_expanded_size</item>
<item name="android:fontFamily">sans-serif-medium</item>
<item name="android:textColor">@#ffff0000</item>
</style>
<style name="TextAppearance.StatusBar.Expanded.Date" parent="@*com.android.systemui:style/TextAppearance.StatusBar.Expanded">>
<item name="android:textSize">@*com.android.systemui:dimen/qs_date_collapsed_size</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@#ffff0000</item>
</style>
<style name="TextAppearance.StatusBar.Expanded.AboveDateTime" parent="@*com.android.systemui:style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">@*com.android.systemui:dimen/qs_emergency_calls_only_text_size</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@#ffff0000</item>
</style>
</resources>
[prjkt.io] Dulo_PL:
It can't be possible. You can check my first post, it's almost the same code. What the difference makes * symbol between @ and android?? Thank you :good:
[prjkt.io] Spannaa:
The

<style name="TextAppearance.StatusBar.Expanded" parent="@*android:style/TextAppearance.StatusBar" />

was from AOSPA github and the * includes private attributes (if in doubt, always add the *)

The later update of the styles (which you may not have seen) was just to ensure it works by adding parents to the three important styles.

Glad you've got it sorted :good:
[prjkt.io] andrehsu:
What does SystemUI affect? On my Pixel XL Oreo, theming the SystemUI seems to bare no effect.
[prjkt.io] zelendel:
It effects a lot. Like toggles, volume slider and different things but it is mostly in the layouts. I know the pixel uses a different system ui then aosp but you should be able to change some things and see a result.
[prjkt.io] chadhoard:
I am running this on a stock Pixel and the only issue I have run across is the [Substratum] StatusBars Beta. It downloaded and installed without any problems. However, for some reason it is not showing up in Substratum. It would be nice to change the status bar.

With being unrooted, can fonts be themed?
[prjkt.io] Spannaa:
It probably doesn't show up because it hasn't been updated for over a year and is probably built using an outdated and unsupported template.
[prjkt.io] djdarkknight96:
No fonts only work on custom roms, will not work on anything stock even with root.
[prjkt.io] jarjar124:
I'm trying to theme the whole notification shade/quick settings panel on Android Oreo. Is it part of Android frameworks or systemui? Any help guiding me the way? I was able to change the accents of the system, but would like to change the panel from white to the grey it was on the Pixel. This is my first time doing this by the way :) Any help is appreciated.
[prjkt.io] djdarkknight96:
Systemui Drawable folder qs_background_primary.xml there's a few others you may want to theme to all qs_
[prjkt.io] Kappa Lamda:
My phone is a Xiaomi Redmi Note 4(sd625). My rom is slim7. According to rom devs, there is support of OMS but without masquerade. I am also rootless.

From substratum app description, substratum is supposed to work rootless on any OMS rom.

But the app keeps showing me "Fail back root".

Does this have something to do with masquerade support missing?
[prjkt.io] jarjar124:
Sweet! I got that down. Now when I try to install the theme I get error saying the Resource is not public when I am calling for a color I made in Android. I declared it in public.xml already in android > res. Any idea why it says its not public?
[prjkt.io] djdarkknight96:
If you're theming with Substratum you need that package name like this @*android:colors/ or @*com.android.settings:color/ for everything @

---------- Post added at 02:54 PM ---------- Previous post was at 02:53 PM ----------

This isn't a theming question, I'd ask in the telegram support chat.
[prjkt.io] djdarkknight96:
Two things, add attrs.xml to values and change those [MENTION=5711379]ANDROID[/MENTION] to @*android
[prjkt.io] jarjar124:
Sweet! That worked! It was @*android:color not colors, but I got it! Thanks man!
[prjkt.io] DynamicDonkey:
Hey guys! I was scrolling thru my display settings on my Pixel running Oreo and I saw this item. Second to last on the screen. Any idea what it is?
[prjkt.io] djdarkknight96:
That's Google embracing OMS on Oreo. It's a good thing
[prjkt.io] DynamicDonkey:
Really! I new Oreo had OMS support but I never noticed it actually being used by the system!
[prjkt.io] Bcl2:
Hi guys. Yesterday I made my first theme. It's veeeery simple and I still have to learn a lot of things. And I was wondering: it is possible to theme complex apps, like games in Unity? I guess not but I want to ask anyway :D
[prjkt.io] djdarkknight96:
Really depends on the app, if it's a very small size like 100kb then it's a web app and we can't theme web. But if the ui is in res or assets folders we can theme it. Non encrypted apps of course.
[prjkt.io] Bcl2:
Just for curiosity, I took a look into ''virtual beggar'' and ''pokemon go'' files, and I could not find any xml file related to in-app colors in the /res folder. Does this means that those apps can't be themed?
[prjkt.io] djdarkknight96:
Yep,, most games are java encoded without any ui just rendered.
[prjkt.io] Baconator724:
Can I somehow theme icons from the drawables folder without doing it manually for them all and replacing them?

For example, is it possible to patch a red icon with a blue filter to get a purple icon without doing it manually in MS Paint and having to redistribute the icon?

Also the MS Paint thing was clearly a bad joke because Paint is terrible.
[prjkt.io] Bcl2:
You can change the color in the xml file of that icon
[prjkt.io] Baconator724:
Where would I find that?
[prjkt.io] Spannaa:
It depends on the app/icons...

If they're xml vectors, you can change the fill/stroke colour in each icon xml file.

If they're pngs, you need to re-colour each icon unless there's a corresponding xml file which controls the colour (these pngs usually have alpha in their filename).

In some apps (e.g. Settings, the icon's colour is controlled by the accent which, when changed, will re-colour all of the dashboard icons.

Yeah, Paint isn't the best tool to use!
[prjkt.io] SXUsr:
Losing some of my statusbar icons when applying com.android.systemui (WiFi, battery percentage, battery icon) but I'm only using values/colors.xml...

Device XZ1 Compact

ROM Stock

Substratum version 854

Logcat HERE

...other than that the colours I want changing have changed.

Just tried to create a dialer asset but for some reason I'm getting the following errors "Top level element is not completed" and "Valid xml document must have a root tag" for my colors.xml, which is the only xml i want to use. I have googled both but nothing I do removes the errors. The apk will build but doesn't show the asset in Substratum.
[prjkt.io] djdarkknight96:
You need the <resources> tags <\resources> in the xml or it won't compile. No idea about icons need more info to help. Using just colors you need to edit the tone dark and light colors.
[prjkt.io] albert.recana:
Cant install android system overlay from swift black( galaxy s8 here), says the app cant be installed because package exists with the same name
[prjkt.io] SXUsr:
Just tried again and while I'm not getting the previous errors my colors.xml is still red, googled that and came across this PAGE but don't now to resolve this?
[prjkt.io] djdarkknight96:
Not the place for this, please go to Google plus community or telegram. Links in side menu of Substratum. This is for Themers to get help not users my friend.

Try build/clean project in android studio should clear that up
[prjkt.io] SXUsr:
It didn't, but what did was commiting the changes, noob error I guess, but it works despite not having an account. I found an overlays.xml in the .adromeda folder on my SD card which has provided the correct filename to get my dialer overlay to display so made real progress today.

Last couple of issues, first one is the SubstratumAntiPiracyLog, I'm not getting one?

Hopefully the last one to remove all errors is the \template\app\src\main\AndroidManifest.xml...

Error: (23, 51) Unresolved package 'theme'

Error: (23, 57) Unresolved package 'template'

Error: (23, 66) Unresolved class 'SubstratumLauncher'

<activity android:name="com.sxusr.darkres.theme.template.SubstratumLauncher">

...com.sxusr.darkres is green but theme.template.SubstratumLauncher is red but if I delete the latter it makes the first part red?
[prjkt.io] Spannaa:
There are still remnants of the original package name in your manifest.

The original is:

<activity android:name="substratum.theme.template.SubstratumLauncher">

After refactoring, it should be:

<activity android:name="com.yourname.themename.SubstratumLauncher">

Or in your case:

<activity android:name="com.sxusr.darkres.SubstratumLauncher">
[prjkt.io] SXUsr:
I've refractored all three folders which are all now labeled "darkres" so not sure why that hasn't updated.
[prjkt.io] Spannaa:
All labeled "darkres"?

Only the last folder (which was "template") should be "darkres"

Your old "theme" folder should be "sxusr" and your old "substratum" folder should be"com"

Also check that every instance of "substratum.theme.template" has been changed to "com.sxusr.darkres" in the four .kt files in the "darkres" folder.
[prjkt.io] SXUsr:
I did wonder, all correct now. The four .kt files are all labeled correctly, it's just the manifest that won't change, just tried, build/clean and a restart too but that hasn't worked.
[prjkt.io] Spannaa:
Just edit the manifest manually ;)
[prjkt.io] SXUsr:
Done, but it's made darkres red, but as the theme works I suppose I can live with that one error and now I've some idea of what I'm doing with AS it's all theming from here. :) Thanks!
[prjkt.io] Spannaa:
If "darkres" in your manifest is the same spelling and case as the folder name, it should be green.

If it's red, it needs fixing.

Strange that "SubstratumLauncher" after the red "darkres" isn't red too...
[prjkt.io] SXUsr:
Should StudioProjects\template be StudioProjects\darkres, if so that might be it, and as said before, before editing the manifest com.sxusr.darkres was green but theme.template.SubstratumLauncher was red, this it what it now looks like...

...but everything is working ok.
[prjkt.io] Spannaa:
You're not making this easy...

As I said before, the activity in your case should be:

<activity android:name="com.sxusr.darkres.SubstratumLauncher">
[prjkt.io] SXUsr:
:D I could say the same, sorted now though! Very last question (I hope), SubstratumAntiPiracyLog is nowhere to be seen?
[prjkt.io] Spannaa:
You could, but you're the one that needed help...

I'm out.
[prjkt.io] zee24:
Guys why can't I use substratum anymore on pixel xl rooted. It used to work but not anymore now it's not letting me use the app blocking access to it and telling me to get Andromeda but I don't want to use my PC to apply themes. What the heck?
[prjkt.io] zelendel:
Thats the way they want to do it now. Its part of the reasons many like my self went back to theming the roms they use by hand. I know a few themers that gave up right then and there and even pulled their themes from the playstore.
[prjkt.io] zee24:
Are you fkin kidding? I just bought a theme too wow that's such bs dude why not give us a choice why at we forced to use a pc that's a downgrade
[prjkt.io] zelendel:
I wish I was but thye even did a portal article about it.

https://www.xda-developers.com/andromeda-substratum-custom-themes-oreo/

Sorry man. But the now we are back to looking for a new theme alternative but have hope. There are a few teams working on a replacement for it.
[prjkt.io] djdarkknight96:
Rooted doesn't need that only non rooted. I'm on OREO right now rooted without it.

Nah bro he's rooted can use without that.
[prjkt.io] djdarkknight96:
Just updated
[prjkt.io] shadowdevil:
Hello Guys i am trying to theme GoogleDialer including the incall UI,but i am stuck in theming the incall UI i would like to theme the "swipe to answer" with an image so i decompiled the googledialer apk and found the xml that is responsible modified via susbstartum in layout folder and placed images in drawable folder,but the images are not loaded after applying the theme though theme is compiled successfully. any help would be appreciated :)

Device : OnePlus 3

ROM : Paranoid
[prjkt.io] Spannaa:
You should be able to use substratum in legacy mode on your rooted oreo pixel xl without the andromeda add-on.

The andromeda add-on is for non-rooted stock oreo devices.

Did you re-use existing images in the drawable folder - you can't add new resources via substratum.
[prjkt.io] zee24:
how do i use it in legacy mode? The moment i open the app it literally goes to the message to download andromeda and wont let me do anything else except redirect to playstore
[prjkt.io] shadowdevil:
Thanks for the reply !

I am trying to add custom images from drawable folder which is not exists in original apk. Here i like to modify instead of showing "swipe up to answer" text i would like to add that cutom image..will it be possible?
[prjkt.io] djdarkknight96:
Give subs root permission. I had to uninstall subs reboot then install. It asked the min I opened it.

---------- Post added at 07:38 AM ---------- Previous post was at 07:37 AM ----------

You would need to replace current xml with your image but keep xml name. I used a shape xml instead and it worked.
[prjkt.io] shadowdevil:
Ok,say i have a file(swipe_up_down_method.xml) in res/layout folder so in substratum i have to edit that xml and add custom image source,i didn,t get the shape xml thing..
[prjkt.io] djdarkknight96:
No you have to replace the Fab Drawable

Only issues are multi sim tint is in smali I think...possibly arrays

Edit I see is fab_pink.png in stock. So look in res/drawable-xxhdpi replace it
[prjkt.io] shadowdevil:
i checked in all drawables folder can't find "fab_pink.png". can i add custom images resources that doesn't exists in original apk and link..?
[prjkt.io] djdarkknight96:
Grab stock apk off apk mirror and decompile it to get raw resources.
[prjkt.io] shadowdevil:
I have already done that :D below is the apk i used..

https://www.apkmirror.com/apk/google-inc/google-phone/google-phone-12-0-167196395-release/
[prjkt.io] djdarkknight96:
Looking closer that's the other fab the one in call gets tinted so the color won't change with a Drawable. It's tinting that one for sim type. Mine is grey so I tink it's using colors in arrays.xml.
[prjkt.io] djdarkknight96:
Both should match but one is tinted in call.