[THEME][TWRP] TWRP Materialised - Black / Dark / Light / Play [Discontinued]

Status
Not open for further replies.

z31s1g

Recognized Themer
Jul 5, 2010
3,238
12,899
0
Munich
Hi.
The theme is awesome, but I have errors with font loading. Repeats itself for 7 times. Font is ugly as you might imagine.
Using 1080 variant on MultiROM version of TWRP for HTC One M8:
Code:
...
Updating partition details...
E: Resource type (font) failed to load
...(5 more)
E: Resource type (font) failed to load
(boots OK)
Use the theme from the 280x folder for now. The 281x theme will only work with the yet to be released 2810 version of TWRP, which comes with true type fonts support.
 
  • Like
Reactions: Nezorflame

Grondinm

Senior Member
Feb 18, 2008
1,567
1,564
0
37
Moncton
Since the N7 2013 does not have it's own thread yet i'll leave this here. Using the latest version of the MultiRom theme for 280x i notice the header flashes a different color than the selected theme when exiting Aroma FM. It's the only place i've noticed it and only on the N7 2013
 
  • Like
Reactions: Natakranta

z31s1g

Recognized Themer
Jul 5, 2010
3,238
12,899
0
Munich
Since the N7 2013 does not have it's own thread yet i'll leave this here. Using the latest version of the MultiRom theme for 280x i notice the header flashes a different color than the selected theme when exiting Aroma FM. It's the only place i've noticed it and only on the N7 2013
In my case it flashes orange. But as you already said, it's a device specific phenomenon. I can't influence it in any way.
 

z31s1g

Recognized Themer
Jul 5, 2010
3,238
12,899
0
Munich
Brightness adjustment doesn't work, theme color change too. S5 twrp 2.8.0.1
Does brightness setting work without the theme?

As for the color change, I suspect this is due to partition naming. The script temporarily writes files to /cache partition.
From what I've read, it might be required to edit the script to make it work.

Simply pull the ui.xml from the zip and open it in Notepad++.

Search for "<page name="set_color">".

This is what the script used to change the color looks like:
Code:
<action function="cmd">
					mkdir "/cache/twrp";
					if [ -f "/sdcard/TWRP/theme/ui.zip" ];
					then unzip -o "/sdcard/TWRP/theme/ui.zip" -d "/cache/twrp";
					chmod 777 "/cache/twrp/zip";
					cp -r /cache/twrp/%tw_folder%/* "/cache/twrp/images";
					busybox mv "/cache/twrp/ui.xml" "/cache/twrp/ui_temp.xml";
					busybox sed "s/%text_highlight%/#%tw_text_color_highlight%/g" "/cache/twrp/ui_temp.xml" > "/cache/twrp/ui_temp2.xml";
					rm -f "/cache/twrp/ui_temp.xml";
					busybox sed "s/%text_actionbar%/#%tw_text_actionbar%/g" "/cache/twrp/ui_temp2.xml" > "/cache/twrp/ui.xml";
					rm -f "/cache/twrp/ui_temp2.xml";
					cd "/cache/twrp";
					./zip -0 -r -u "/sdcard/TWRP/theme/ui.zip" *;
					cd /;
					rm -r "/cache/twrp"
					else
					unzip -o "/int_sd/TWRP/theme/ui.zip" -d "/cache/twrp";
					chmod 777 "/cache/twrp/zip";
					cp -r /cache/twrp/%tw_folder%/* "/cache/twrp/images";
					busybox mv "/cache/twrp/ui.xml" "/cache/twrp/ui_temp.xml";
					busybox sed "s/%text_highlight%/#%tw_text_color_highlight%/g" "/cache/twrp/ui_temp.xml" > "/cache/twrp/ui_temp2.xml";
					rm -f "/cache/twrp/ui_temp.xml";
					busybox sed "s/%text_actionbar%/#%tw_text_actionbar%/g" "/cache/twrp/ui_temp2.xml" > "/cache/twrp/ui.xml";
					rm -f "/cache/twrp/ui_temp2.xml";
					cd "/cache/twrp";
					./zip -0 -r -u "/int_sd/TWRP/theme/ui.zip" *;
					cd /;
					rm -r "/cache/twrp"
					fi
					</action>
You could try to replace every occurrence of "cache" with "dev/block/mmcblk0p24" (for SM-900P, for SG-900H it is "dev/block/mmcblk0p19"). Then replace the ui.xml in the zip with your edited one and give it a try.
 

claytonjn

Senior Member
Nov 3, 2011
1,561
836
0
claytonjamesphotography.webs.com
Does brightness setting work without the theme?

As for the color change, I suspect this is due to partition naming. The script temporarily writes files to /cache partition.
From what I've read, it might be required to edit the script to make it work.

Simply pull the ui.xml from the zip and open it in Notepad++.

Search for "<page name="set_color">".

This is what the script used to change the color looks like:
Code:
<action function="cmd">
					mkdir "/cache/twrp";
					if [ -f "/sdcard/TWRP/theme/ui.zip" ];
					then unzip -o "/sdcard/TWRP/theme/ui.zip" -d "/cache/twrp";
					chmod 777 "/cache/twrp/zip";
					cp -r /cache/twrp/%tw_folder%/* "/cache/twrp/images";
					busybox mv "/cache/twrp/ui.xml" "/cache/twrp/ui_temp.xml";
					busybox sed "s/%text_highlight%/#%tw_text_color_highlight%/g" "/cache/twrp/ui_temp.xml" > "/cache/twrp/ui_temp2.xml";
					rm -f "/cache/twrp/ui_temp.xml";
					busybox sed "s/%text_actionbar%/#%tw_text_actionbar%/g" "/cache/twrp/ui_temp2.xml" > "/cache/twrp/ui.xml";
					rm -f "/cache/twrp/ui_temp2.xml";
					cd "/cache/twrp";
					./zip -0 -r -u "/sdcard/TWRP/theme/ui.zip" *;
					cd /;
					rm -r "/cache/twrp"
					else
					unzip -o "/int_sd/TWRP/theme/ui.zip" -d "/cache/twrp";
					chmod 777 "/cache/twrp/zip";
					cp -r /cache/twrp/%tw_folder%/* "/cache/twrp/images";
					busybox mv "/cache/twrp/ui.xml" "/cache/twrp/ui_temp.xml";
					busybox sed "s/%text_highlight%/#%tw_text_color_highlight%/g" "/cache/twrp/ui_temp.xml" > "/cache/twrp/ui_temp2.xml";
					rm -f "/cache/twrp/ui_temp.xml";
					busybox sed "s/%text_actionbar%/#%tw_text_actionbar%/g" "/cache/twrp/ui_temp2.xml" > "/cache/twrp/ui.xml";
					rm -f "/cache/twrp/ui_temp2.xml";
					cd "/cache/twrp";
					./zip -0 -r -u "/int_sd/TWRP/theme/ui.zip" *;
					cd /;
					rm -r "/cache/twrp"
					fi
					</action>
You could try to replace every occurrence of "cache" with "dev/block/mmcblk0p24" (for SM-900P, for SG-900H it is "dev/block/mmcblk0p19"). Then replace the ui.xml in the zip with your edited one and give it a try.
FYI, I didn't have to do any of this on my S5, G900V (Verizon Developer Edition) although I did have to delete the .twrps file to get the color change working coming from your Holofied theme, if I'm not mistaken.
 
  • Like
Reactions: z31s1g

z31s1g

Recognized Themer
Jul 5, 2010
3,238
12,899
0
Munich
Post with the themes for 1440x2560 (TWRP 2.8.0.0) is updated - separate dark themes with different highlight colours added.
There's no reason for the color change not to work. The code is identical. Have you tried deleting the .twrps file before booting the dark theme?
 

PunchUp

Senior Member
Sep 18, 2013
4,282
2,879
0
There's no reason for the color change not to work. The code is identical. Have you tried deleting the .twrps file before booting the dark theme?
It didn't work on my device either, if you remember my PM. But you didn't mention deleting .twrps file. I'll try that now

---------- Post added at 06:57 PM ---------- Previous post was at 06:53 PM ----------

No still the same :(
Anyway I use the Play theme now. So don't need it
 
  • Like
Reactions: gaich
Status
Not open for further replies.