[MOD][MIUI8 - All versions] Modify Toggles Grid and Notification/Statusbar font sizes - Redmi Note 2 Themes and Apps

See attached files, everything you need is included (except functioning brain cells)
If you go larger fonts, you may get issues with elements not being displayed - your hand is on the controls

I have put the two files at the latest eu 8.2.1.0, but it does not seem to work. Is it me or something else is going on?

Related

System wide Style Sheets

This is an idea I have from my experience using themes on my Samsung Captivate. My experiences i describe apply particularly to the AOKP builds for that device and a few others. However the concepts are something which would be implemented at a system level and I think it would be applicable for any Android device, so I wanted to share it here in the general forum as well.
I like the color picker in Rom Control for ICS AOKP, but I was surprised that you pick and choose each color separately for clock, signal, etc. There is the hard-coded button to recall the ICS holo blue. I would love to see another button that stores a user selected color instead of copying and pasting the hex codes, although that works. And then the wireless signal is a graphic image that you cant change without flashing a .zip to modify system png and the like. I wondered if it could be coded to use a triangle with a fill color based on something from the color picker, and then lay over top of that grey or black bars for the part that should be 'off'. maybe layers arent possible? tho it appears that they are being used, and i have seen overlap of the data signal on top of the wireless bars. right? I know there is a LOT of stuff these amazing developers are working on which keeps them very busy already. These are just some ideas
I noticed looking through some of the code in AOKP gerrit for the theme chooser updates, that they started using variables instead of a hard coded ICS holo blue color. but it seems as if there is no user interaction for that color, its still a hard coded value set in a single location instead of being hard coded in multiple locations. So it is a huge improvement Im sure for themers who have to try to search out and modify every instance of those values. I would just like to see it progress to something where the end user can modify that variable from Rom Control.
It would be even more awesome if Android used a system wide style sheet setup. background, checkbox style, text color, font, font size, perhaps it could even include specs for headers, paragraphs, tables, titles, etc. but that would be WAY more than I am thinking. It certainly works nicely for web design tho.
This would then be something that other apps could also read and implement into their design as well. Then we wouldn't have to create hacked SMS and google play, and tapatalk, etc, etc, etc. to make them inverted or red, green, orange, blue, yellow, etc.
Of course having an option to over-ride those settings is cool too, maybe you want an all orange theme, but you want white on your keyboard keys. a keyboard app could have a selector built into its settings which allows you to follow the system setting or pick your own base color, or go with the developers default choice. There are a lot of great developers out there who make gorgeous apps that deserve to keep their defaults, ie. 1weather. So I am sure apps would ship with their own defaults turned on, so the user is guaranteed the experience they intended.
I do think these ideas seem inline with what google is trying to accomplish with their unified design standards.
I am imagining a day where I can change my wallpaper and then open settings, use a color picker (maybe even one that can pick a color from the wallpaper ... Then maybe choose black or white, or gradient or transparent background. Two steps, and just that simply and quickly my whole system is color themed to compliment. Then using Tasker this could even be automated for work, home, weekends, etc. LOL.
Ok iphone, take that!
OK so I guess 187 people looked and decided that was way toooo much to read.
LOL
Sent from my SGH-I897 using Tapatalk 2

[ICONS][GUIDE] Creating Mask Based Icon Themes (with Example)

I've only created two icon packs, but they seem to work, so I'll take you through my process.
The first thing to research is how mask based icons work in general. There's a dearth of good information, but I did find the Icons Special Features section of the ADW Theming Guide to be useful. Alternatively, you can follow along and examine my images to gain an understanding of what I've done.
Let's proceed.
I began with mathur's Icon-Pack Template, but I've modified it to fit my needs by removing unnecessary bits and the parts relating to non-mask based icon packs. See the attached example, Crinkle.zip
Once you've downloaded Crinkle.zip and imported the code into eclipse, there are several things you'll need to alter:
First, you must rename the package. This can be done by doing one (or both) these actions:
[project (context menu)] > Android Tools > Rename Application Package
[package (context menu)] > Refactor > Rename​Second, ensure the correct scale factor. This can be found in two places:
assets / appfilter.xml
res / xml / appfilter.xml​Third, make sure your informational strings are correct. There are two locations:
res / values / strings.xml
res / values / theme_config.xml​Fourth, and most important, add your own icons. These can be found in res / drawable-xhdpi, and they are:
icon.png - the application icon
iconback.png - the background image
iconmask.png - the transparency / opacity mask
iconupon.png - the overlay image​Now test it out.
My finished icon pack is live on Google Play under the title Crinkle Icon Theme.
Enjoy!
This looks great, but how would you create a mask for making all the icons black and white? Something like this:
com.seangrondin.icons.filmstripdesaturate (sorry i can't post links yet )
I want to make a sepia themed icon mask.
Thanks
error
Also, I'm getting an error as soon as I import.
Is there a way to make this target api 10 instead of api 19?
1rdc said:
This looks great, but how would you create a mask for making all the icons black and white? Something like this:
com.seangrondin.icons.filmstripdesaturate (sorry i can't post links yet )
I want to make a sepia themed icon mask.
Thanks
Click to expand...
Click to collapse
I looked into it a bit, and here's what I've discovered. If you include a res/xml/shader.xml file, you will be able to affect the color in at least Apex and Nova. I found a fairly detailed explanation that should help you get started.
I will soon update the original post to include more details about this, as well as a cleaner icon pack framework.
How do I make it compatible with Smart Launcher? The icon pack applies but the shader doesn't work and the theme doesn't show up under "Themes"

[Q] Modifying SystemUI

I am looking for some information and assistance with attempting to modify the SystemUI.apk or in creating a custom Theme for my HTC One M7 on Android 4.4.3 with Sense 6. I am running the ARHD Rom but I would like a method independent of using Custom ROMs or Xposed framework if possible, requiring root is fine. I have seen some packages that do some of this which contain a vrtheme folder in them but haven't been able to find a tutorial on building one of these and which files are for which icons.
I have tried modifying the background color in res/values/drawable.xml and in res/layout/status_bar.xml files to #ff000000 but the status bar still appears grey on the home screen. This seems to match with the theme I selected from the Personalize menu in Settings. It's my guess that somehow, these theme settings override the systemUI settings. So I would like a way to create my own theme to select which will hopefully also allow me to change the color for selected notifications and the like.
In addition to this, I have a set of icons for the status bar such as battery power, battery charge, wifi signal, cellular signal, mobile data quality, etc.. which I would like to use to replace the systemUI icons for these. However, there seem to be several versions of icons in various drawable folders. So if I could find out the requirements for these files (size, naming, location to replace them at) or if there is a way to replace them as part of a theme that is, again, independent of custom rom or xposed framework if possible.
If anyone knows of a tutorial that already exists for any of these things simply pointing me to that is answer enough, I just didn't have luck finding it when trying to search for it.

Question Icon Grid change

Hi All,
Just checking how do I change or increase the icon grid on the display screen from 4*5 to more ?
Thank you.
tech
It's done through the 'Styles' customisation when you long-press on the homescreen. You can adjust icon shape, accent colour, and grid size.
Bit strange that it's in that menu - especially since icon size is elsewhere - but given many previous revisions of Moto's software never had the feature natively, I'm happy.
Is there any way to put 6×6?
Harry Haller said:
Is there any way to put 6×6?
Click to expand...
Click to collapse
Just with custom launchers.
I have used nova launcher until recently. I'm facing a bug where I cant close an app, and that app will stay on my screen whatever I do.
I've tried microsoft launcher and Smart launcher, but same thing was happening.
Now, I use Hyperion, and so far. for 1 week, that bug happened just once, instead every day like with other launchers.
With root you can edit the stock launcher:
go to data/data/com.motorola.launcher3/shared_prefs and in shared_prefs there is an .xml file called "com.android.launcer3.prefs.xml". Inside you fill find the line "<string name="pref_grid">XxY</string>" where instead of XxY you put 6x6 or whatever you want. You will also find the line "<string name="PREF_ICON_NEW_SIZE" value ="X" />" which allows you to change the icon size to whatever you like. After edit the .xml file to be read only so that the phone doesn't change it and give it a restart. It may or may not work, I haven't tried it with Android 12.

Themes / Apps / Mods ADB Custom Mod Module Maker

For Stock-Rooted Only.
The purpose of this installer is to generate a custom module that can be flashed in Magisk App. It will have all the mods that were selected from the installer menu. You need to be stock with root and of course you need to be attached to your PC. On first installation, a pop-up asking to give ADB shell root permission will show. Please do so. This will only happen once.
I internet speed indicators do not change colors due to light-dark background colors. The colored statusbar icons should.
After Installing this module, your screen will relock after every reboot of your phone. You unlock it the first time, in about a second it will relock itself and you will have to unlock it again. If that is too much for you, don't use this mod. This also will not work with the bootloop protection module. It will disable this module.
This mod uses the SystemUI Patcher Module Template by @Jai_08 By @cool_modules on telegram
Root required
ADB Instructions.
1. Unzip ADB Mods Installer Files.zip on your PC
2. ADB debugging Enabled
3. Run TulsadiverModsInstaller.bat (Give ADB Shell Root Permissions. If missed on first opportunity, turn on in Magisk App superuser)
4. Flash the SystemUI Base First. It provides the necessary smali files and public ID's for everything to work
5. Go through the other options selecting what all mods you want. It is generally best to start at the top and work your way down.
6. Once finished with selections, run "Finish building Module" at the bottom of the menu. This will generate your mymagisk.zip module in a folder called "ozop" on your sdcard.
7. Flash the "mymagisk.zip" in Magisk App.
This mod also installs a QS and settings background overlay option under settings/Display/Device Theme. There are a few QS tile color options with an option to change the settings background to black.
This is firmware specific. If a Pixel firmware update changes either the SystemUIGoogle.apk or Framework-res.apk, this mod will need to be updated. Uninstall this module before updating your phone.
As with anything else you flash on your phone, you run the risk of a bootloop. This might not be compatible with some other modules. Flash at your own risk.
List of MODS Available
Add am/pm to the clock and/or choose right side clock
Internet Traffic Speed Single Indicator
Choose Traffic Speed Indicator Up-Down Colors (default is white)
Navbar Swap
Remove Battery Icon, leave percentage
Swap Battery Icon and percentage
One percent custom battery Mods-a few to choose from
One percent custom battery Text-only-Several to choose from
Colored Statusbar-Navbar Icons
Remove Carrier Text
Smaller LTE Icon
Fonts
ADB SystemUI Module Maker
June Update uploaded 6-17-23
289.11 MB file on MEGA
mega.nz
-------------------------
I'm also including this separate Pixel Launcher mod. Also a ADB Installer. You can change app drawer background-text color (separately for light mode and dark mode), remove Google search bar from the homescreen and all-Apps drawer. Change the number of hot seat icons on home page (and size) as well as change the number of columns in the app drawer.
Instructions are the same as above...Install base, pick options, complete installation. Mymagisklauncher.zip will be in ozop folder.
Remove Google Search Bar
App Drawer background color (Light and Dark Mode)
App Drawer Text Color
Home screen App Text Color
App Icon Sizes 45-50-56 dip (56 is stock)
Hotseat 5-6-7 Icons
Columns (5-6-7)
Rows (5 through 11)
ADB Pixel Launcher Module Maker
June update uploaded 6-17-23
166.29 MB file on MEGA
mega.nz
-----------------------------
Good to see you back in the game!!!
Lughnasadh said:
Good to see you back in the game!!!
Click to expand...
Click to collapse
Thanks! Just barely limping along, lol! Baby steps.
I'm not sure these are useful any more. I might post some stand alone mods if there's anyone interested.
Tulsadiver said:
Thanks! Just barely limping along, lol! Baby steps.
I'm not sure these are useful any more. I might post some stand alone mods if there's anyone interested.
Click to expand...
Click to collapse
Stand alone mods would be cool
March update has been uploaded.
Thanks for posting this! I haven't used your module maker before, but I just spent an hour reading older threads for the Pixel 4XL and 5. I see the mod maker has the ability to change system fonts. That is really the only thing I am after at this point. You actually helped me with a Magisk module back on the Pixel 3a. Is there any chance you could create a stand alone module to change fonts? The attached file is the module you created for Android 10, along with all the custom fonts I wish to use. As I mentioned in another thread, I'm happy make a donation for your time.
Ditamae said:
Thanks for posting this! I haven't used your module maker before, but I just spent an hour reading older threads for the Pixel 4XL and 5. I see the mod maker has the ability to change system fonts. That is really the only thing I am after at this point. You actually helped me with a Magisk module back on the Pixel 3a. Is there any chance you could create a stand alone module to change fonts? The attached file is the module you created for Android 10, along with all the custom fonts I wish to use. As I mentioned in another thread, I'm happy make a donation for your time.
Click to expand...
Click to collapse
I put those fonts into a module installer. It will still relock the screen each time after the phone is rebooted. I don't think this will work without a systemui modification. I put a token PNG file in it along with your font if you would like to try it.
Tulsadiver said:
I put those fonts into a module installer. It will still relock the screen each time after the phone is rebooted. I don't think this will work without a systemui modification. I put a token PNG file in it along with your font if you would like to try it.
Click to expand...
Click to collapse
You are awesome! Can't wait to flash this when I get home.
Edit: Looking through your Module maker, I'm wondering if I need to designate a font as google_sans_clock.ttf in order to replace the clock font?
Ditamae said:
You are awesome! Can't wait to flash this when I get home.
Edit: Looking through your Module maker, I'm wondering if I need to designate a font as google_sans_clock.ttf in order to replace the clock font?
Click to expand...
Click to collapse
On 13 in product/fonts designate one as GoogleSansClock-Regular.ttf
Tulsadiver said:
On 13 in product/fonts designate one as GoogleSansClock-Regular.ttf
Click to expand...
Click to collapse
Okay. Added a font renamed GoogleSansClock-Regular.ttf to \mymagiskFont.zip\system\product\fonts
I assume I don't need to make any changes to the mymagisk.zip file within the mymagiskFont.zip? Sorry for my ignorance.
Ditamae said:
Okay. Added a font renamed GoogleSansClock-Regular.ttf to \mymagiskFont.zip\system\product\fonts
I assume I don't need to make any changes to the mymagisk.zip file within the mymagiskFont.zip? Sorry for my ignorance.
Click to expand...
Click to collapse
No, you should be good to go.
Your module applied, no problem. Only real issue is I'm getting overlap with the lockscreen clock. Tried moving some fonts around to try another in place of GoogleSansClock-Regular. Results with same issue. Also missing the dash in Settings for Wi-Fi, but this has intermittently been a problem with this font for years. Hmm. Might have to play around with it some more later when I have more time.
Ditamae said:
Your module applied, no problem. Only real issue is I'm getting overlap with the lockscreen clock. Tried moving some fonts around to try another in place of GoogleSansClock-Regular. Results with same issue. Also missing the dash in Settings for Wi-Fi, but this has intermittently been a problem with this font for years. Hmm. Might have to play around with it some more later when I have more time.
Click to expand...
Click to collapse
Try a different font for the clock. Which one did you use?
Tulsadiver said:
Try a different font for the clock. Which one did you use?
Click to expand...
Click to collapse
I did try two. I tried the fonts named Roboto-Light and Roboto-Thin. Both are light versions of Helvetica, one is slightly lighter than the other. Both overlapped on the lockscreen. But both did, however, display the colon when the clock switches to a digital version when the user receives a notification on the lockscreen. I remember a lot of these fonts were missing that glyph back in the day too. So that's a plus.
I have to work a couple long shifts the next few days, but I will definitely try some other fonts when I have free time and report back. I really appreciate you getting me started with this module! Many thanks to you!
@Tulsadiver - I'm wondering if you have seen the overlapping behavior on the lockscreen with your custom fonts? I'm also wondering if the stock GoogleSansClock-Regular is a variable font, allowing it to change weights when the user interacts with the phone while the phone is locked (e.g., the double stack clock font is thin and then becomes heavier when the user engages with the device and the background wallpaper image comes into view). I'm thinking maybe my overlapping issue could be related to overwriting a variable font with a static font?
One another note, I'm still seeing what appears to be Roboto font within non-Google applications (e.g., Nova Launcher menu, Solid Explorer menu). I don't see this behavior with the same applications on my Pixel 3 running Android 10. I'm wondering if there is another font I need to overwrite... the only one I can see within Android 13, not present in 10, is RobotoStatic-Regular. Do you think this could be the font used for these app menus, and what do you think about replacing it?
Ditamae said:
@Tulsadiver - I'm wondering if you have seen the overlapping behavior on the lockscreen with your custom fonts? I'm also wondering if the stock GoogleSansClock-Regular is a variable font, allowing it to change weights when the user interacts with the phone while the phone is locked (e.g., the double stack clock font is thin and then becomes heavier when the user engages with the device and the background wallpaper image comes into view). I'm thinking maybe my overlapping issue could be related to overwriting a variable font with a static font?
One another note, I'm still seeing what appears to be Roboto font within non-Google applications (e.g., Nova Launcher menu, Solid Explorer menu). I don't see this behavior with the same applications on my Pixel 3 running Android 10. I'm wondering if there is another font I need to overwrite... the only one I can see within Android 13, not present in 10, is RobotoStatic-Regular. Do you think this could be the font used for these app menus, and what do you think about replacing it?
Click to expand...
Click to collapse
I don't show any overlapping on the fonts I've used and the GoogleSansClock font and AndroidClock are used in mine. I typically use Roboto-Thin to replace them.
There are applications that use their own fonts. I don't see any problem replacing RobertoStatic-Regular though I have not.
Tulsadiver said:
I don't show any overlapping on the fonts I've used and the GoogleSansClock font and AndroidClock are used in mine. I typically use Roboto-Thin to replace them.
There are applications that use their own fonts. I don't see any problem replacing RobertoStatic-Regular though I have not.
Click to expand...
Click to collapse
Okay, so adding a custom font named RobotoStatic-Regular fixed my issue within certain applications (see attached image).
I also just took a look at the stock GoogleSansClock-Regular font, and it is in fact a variable or dynamic font. This could be related to my render/overlap issue. I might keep trying different fonts to see if it works properly with any of my custom fonts. Another thought I had was buying a variable font online and plugging that one in for the lockscreen clock. Thanks for your continued feedback!

Categories

Resources