Im in the process of making my own theme but there is one part i'm stuck on. In certain places the colours are not from a png but from a registry setting i.e the list selectors in call history, or apps like Resco Explorer.
I suspect it's the reg entry in tsk as below:
ThemeValues"=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,FF,FF,FF,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
FF,FF,FF,00,FF,FF,FF,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,FF,FF,FF,00,FF,FF,FF,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,50,50,50,00,FF,FF,FF,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,FF,FF,FF,00,00,00,00,00,00,\
This gives a shade of grey but how do i edit this string to make those same selectors black? I think it is the 50,50,50 part so do i just lower those values or is there more to it?
Yep, that's the value to change. You can even achieve more complicated results like inverting the system colors (as seen in kane159 HollBlack Themes).
For the selection colors you mentioned you already found the right digits, you have to change them to 00,00,00 for black. You need to understand how the hexadecimal RGB-notation works for this .
Thank you for confirming that. At least it's not going to be trial and error now
Here's a trickier one. Hopefully somebody will know the solution:
When you tap and hold on an item to bring up a context menu there is the circle of dots animation. How does one modify the colour of that now? I understand that it used to be an entry in the same place as above called 40 with a Binary value. I assume as i don't have that value that the method has changed?
Look in HKLM\Software\Microsoft\Color\MultiColorTheme, there are four values (BaseColor1 through BaseColor4). The dots you mentioned get the color by somehow mixing these four values together... I have BaseColor1 and 3 set to black (simply 0) and the other two to white (FFFFFF hex), and the dots are grey. They also controll the gradient in some legacy message boxes (for example when deleting something from the file explorer).
I see what you mean! Mine are set to the same values as yours and so are obviously grey too. I want them black really so i will try it with all values set to 0.
Thanks again for your help!
EDIT: Well, i altered the values of all four to 0 in my tsk and re-installed my Theme. It's still grey I guess there must be more to it than this. It's not a big deal but if you have any other suggestions i'd really appreciate it.
Hey all,
I was inspired by all the fabulous work on xda and created a python script to render transparent text icons.
PHP:
from PIL import Image, ImageDraw, ImageFont
import zipfile
import os
class iconpack:
def __init__(self, zipfsp, fontfsp, fontsize, height, width):
self.zip=zipfile.ZipFile(zipfsp, mode='w') # create the zip file
self.fontfsp=fontfsp
self.fontsize=fontsize
self.h=height
self.w=width
def addicon(self,lines):
iconfsp=self.render(lines)
self.zip.write(iconfsp) # add the icon tot he zip file
os.remove(iconfsp) # delete the remaining icon file
def render(self, lines):
im =Image.new("RGBA",(self.w,self.h),(0,0,0,0)) # adjust the 4th zero to adjust transparency
draw = ImageDraw.Draw(im)
font = ImageFont.truetype(self.fontfsp,self.fontsize) # the font file needs to be accessible
y=0
for line in lines:
rendered_hw=font.getsize(line) # figure out how wide the rendered text will be
x=im.size[0]/2-(rendered_hw[0]/2) # so we can centre it
draw.text((x,y), line, font=font)
y+=rendered_hw[1]-5 # adust the gap between the lines
# write image file
iconfsp=lines[0]+"_"+lines[1]+".png"
im.save(iconfsp, "png")
del im
return iconfsp
# I tried a few different sizes, I saw a simplay iconpack on xda which used 46x81, on the shoulders of giants, etc
# zipfile, font file, font size, width and height
ip=iconpack('DroidSans.zip','DroidSans.ttf',23,46,81)
ip.addicon(["Inter", "Webs"])
ip.addicon(["My", "Email"])
ip.addicon(["Work", "Email"])
ip.addicon(["Snap", "Shot"])
ip.addicon(["Pod", "Casts"])
ip.addicon(["Audio", "Books"])
ip.addicon(["The", "Mrs"])
ip.addicon(["Bar", "Code"])
ip.addicon(["Four", "Square"])
ip.addicon(["SMS", ""])
ip.addicon(["Maps", ""])
ip.addicon(["Reddit", "is fun"])
I cannot link out to a piccy of the results, but if you're curious and can be arse to type in a url, have a look at babbaging blogspot com.
If it's useful to anyone, you're welcome.
Questions?, ask away.
Matt
I've been looking for a way to adjust a global "accent color" that I've created with KLWP and KWGT.
I couldn't find anything... So, I found a way to do it myself.
This is for those who are familiar with Tasker and KLWP...
There may also be a better way to do this.
Step 1 Create Tasks
You'll need to create 8 separate tasks
All Capitol letters are important!
1. Accent
2. Color
3. Red
4. Redhex
5. Green
6. Greenhex
7. Blue
8. Bluehex
--
1. Accent
-
1- Show Scene
Name: Accent Picker
Display As: Display, Full Display, No Bar
Animation: System
Continue Task Immediately: ✓
2- Variable Set
Name: %Accent
To: %0
2. Color
-
1- Variable Set
Name: %Color
To: %Redhex%Greenhex%Bluehex
3-8 Red, Redhex, Green, Greenhex, Blue & Bluehex
-
1- Variable Set
Name: %Red Repeat for all other tasks using the tasks name.
To: 16 Anything but 1-15
Step 2 Create A Profile
You'll need to create 1 Profile
1. Color
-
1- Event • Variable Set
Variable:%Color
Value:%Color
Step 3 Create A Scene
I called my scene Accent Picker.
You can design your scene the way you want but you will need the following elements for this tutorial.
You'll need 5 separate elements.
1. Red | Slider Element
2. Green | Slider Element
3. Blue | Slider Element
4. Finish Button | Text Element
5. Preview Box | Rectangle Element
Purpose:
You'll be using each slider element to create a value for each channel R G B
You'll be using the "Finish Button" to destroy the scene when you are done and to broadcast the new variable to KLWP or KWGT.
You'll be using the "Preview Box" to view the color you create with your slider.
1-3. Red | Slider Element *Repeat the steps below for Green and Blue*
UI
Name: Red
Min: 16
Max: 255
Default: %Red
Value Selected
1 - Variable Set
Name: Red
To: %new_val
2- Array Process
Variable: %Color
Type: Remove Duplicates
3- Variable Convert
Name: %new_val
Function: Decimal to Hex
Store Result In: %Redhex
4- Variable Set
Name: %Accent
To: %Color
5- Array Process
Variable: %Color
Type: Remove Duplicate
Min: 16
Max: 255
Default: %Red
4. Finish Button
UI you can dress this up however
Name: Done
Tap
1- Variable Set
Name: %Accent
To: %Color
2- KLWP Send Variable
Configuration: Tasker String - %Accent | Kustom Variable - accent
3- Destroy Scene
Name: Accent Picker
5. Preview Box
UI
Geometry: However you want
Colour: %Color
Step 4 Create KLWP Touch Action & Formula
You can now create a touch action in KLWP
Touch
Single: Launch Shortcut
Shortcut: Task Shortcut : Accent
You can call in the new Hex code value with the Formula Editor string
Formula
$br(tasker, accent)$
Thanks!
---
I'm currently working on a KLWP called "Nokose" which is the Muscogee word for Bear.
I'm a previous owner of multiple Windows Phones. I miss the dark theme option and having control over the accent color of my phone.
Very cool!
As an addition/adjunct/enhancement to this Project, the AutoTools beta plugin has two color pickers that are slightly different than the RGB sliders. One is a color wheel style, the other is a pre-selected set of colors from the Material Design palettes.
Could likely add buttons to the Scene to launch these as well in addition to using the RBG sliders.
Ratchet_Guy said:
Very cool!
As an addition/adjunct/enhancement to this Project, the AutoTools beta plugin has two color pickers that are slightly different than the RGB sliders. One is a color wheel style, the other is a pre-selected set of colors from the Material Design palettes.
Could likely add buttons to the Scene to launch these as well in addition to using the RBG sliders.
Click to expand...
Click to collapse
Great idea! Thanks
chaseghuggins said:
I've been looking for a way to adjust a global "accent color" that I've created with KLWP and KWGT.
I couldn't find anything... So, I found a way to do it myself.
This is for those who are familiar with Tasker and KLWP...
There may also be a better way to do this.
Click to expand...
Click to collapse
I've done this by following your tutorial some time ago. Thank you!
Just wanna share how the Color Picker looks: https://s3.postimg.org/8hmo6li9f/Screenshot_2016_08_17_09_49_42.png
#Henkate said:
I've done this by following your tutorial some time ago. Thank you!
Just wanna share how the Color Picker looks: https://s3.postimg.org/8hmo6li9f/Screenshot_2016_08_17_09_49_42.png
Click to expand...
Click to collapse
That's awesome! Thanks for sharing.
Ratchet_Guy said:
Very cool!
As an addition/adjunct/enhancement to this Project, the AutoTools beta plugin has two color pickers that are slightly different than the RGB sliders. One is a color wheel style, the other is a pre-selected set of colors from the Material Design palettes.
Could likely add buttons to the Scene to launch these as well in addition to using the RBG sliders.
Click to expand...
Click to collapse
Which auto tools beta app is the color picker? Unless I'm overlooking it, I don't see it. Thanks!
bcraft85 said:
Which auto tools beta app is the color picker? Unless I'm overlooking it, I don't see it. Thanks!
Click to expand...
Click to collapse
When adding the AutoTools Action in Tasker, choose AutoTools > Dialog.
Then under the choices for "Type" of Dialog you'll see "Color PIcker".
chaseghuggins said:
I've been looking for a way to adjust a global "accent color" that I've created with KLWP and KWGT.
I couldn't find anything... So, I found a way to do it myself.
This is for those who are familiar with Tasker and KLWP...
There may also be a better way to do this.
Step 1 Create Tasks
You'll need to create 8 separate tasks
All Capitol letters are important!
1. Accent
2. Color
3. Red
4. Redhex
5. Green
6. Greenhex
7. Blue
8. Bluehex
--
1. Accent
-
1- Show Scene
Name: Accent Picker
Display As: Display, Full Display, No Bar
Animation: System
Continue Task Immediately: ✓
2- Variable Set
Name: %Accent
To: %0
2. Color
-
1- Variable Set
Name: %Color
To: %Redhex%Greenhex%Bluehex
3-8 Red, Redhex, Green, Greenhex, Blue & Bluehex
-
1- Variable Set
Name: %Red Repeat for all other tasks using the tasks name.
To: 16 Anything but 1-15
Step 2 Create A Profile
You'll need to create 1 Profile
1. Color
-
1- Event • Variable Set
Variable:%Color
Value:%Color
Step 3 Create A Scene
I called my scene Accent Picker.
You can design your scene the way you want but you will need the following elements for this tutorial.
You'll need 5 separate elements.
1. Red | Slider Element
2. Green | Slider Element
3. Blue | Slider Element
4. Finish Button | Text Element
5. Preview Box | Rectangle Element
Purpose:
You'll be using each slider element to create a value for each channel R G B
You'll be using the "Finish Button" to destroy the scene when you are done and to broadcast the new variable to KLWP or KWGT.
You'll be using the "Preview Box" to view the color you create with your slider.
1-3. Red | Slider Element *Repeat the steps below for Green and Blue*
UI
Name: Red
Min: 16
Max: 255
Default: %Red
Value Selected
1 - Variable Set
Name: Red
To: %new_val
2- Array Process
Variable: %Color
Type: Remove Duplicates
3- Variable Convert
Name: %new_val
Function: Decimal to Hex
Store Result In: %Redhex
4- Variable Set
Name: %Accent
To: %Color
5- Array Process
Variable: %Color
Type: Remove Duplicate
Min: 16
Max: 255
Default: %Red
4. Finish Button
UI you can dress this up however
Name: Done
Tap
1- Variable Set
Name: %Accent
To: %Color
2- KLWP Send Variable
Configuration: Tasker String - %Accent | Kustom Variable - accent
3- Destroy Scene
Name: Accent Picker
5. Preview Box
UI
Geometry: However you want
Colour: %Color
Step 4 Create KLWP Touch Action & Formula
You can now create a touch action in KLWP
Touch
Single: Launch Shortcut
Shortcut: Task Shortcut : Accent
You can call in the new Hex code value with the Formula Editor string
Formula
$br(tasker, accent)$
Thanks!
---
I'm currently working on a KLWP called "Nokose" which is the Muscogee word for Bear.
I'm a previous owner of multiple Windows Phones. I miss the dark theme option and having control over the accent color of my phone.
Click to expand...
Click to collapse
Great Thing
Thanks
Sorry for dredging up an old cow, but I kinda need this color picking mechanic for my light controls, so..
I got through the whole tutorial except for the last function of the sliders, where it tells you to enter a minimum and maximum for processing an array.
"5- Array Process
Variable: %Color
Type: Remove Duplicate
Min: 16
Max: 255
Default: %Red"
For some reason, tasker wont (nolonger?) let me pick the min/max values.
Is there a way around this? Or has tasker managed to make it automatic or something?
You may see how the scene runs without the min and max? I apologize if it does not work. I've not used this scene recently.