[Samsung Galaxy Gear] OpenMind_NL:
Info, Tips and Tricks

Donations

You like to donate?

I have no problem to pay my rent or to get something decent to eat every day.

Homeless people in your town will be happy to collect my donations.

If your town is lucky and noone is homeless, please donate at the nearest animal shelter.

Watch Styler themes location at your phone

Phone\Android\data\com.omnitel.appcessory.gear.watchstyler.manager\theme

Theme folder contents

File:	PRV_IMG.png

File:	theme.json

Folder:	images. Contains one or more PNG image files

Folder:	texts. Sometimes contains one or more images. Often contains fonts folder (which may be empty).

Make theme.json easier to read

Very often you may start by editing a theme that was saved by Watch Styler editor.

First thing you will see when you open theme.json, is one big text-block without any spaces or line-breaks.

What I always do first is replacing all "{" by "Enter { Enter", and replacing all "}" by "Enter } Enter".

Example in windows Notepad:

Type Enter { Enter and copy the three lines. Remove the lines you just typed and copied!

Set your cursor at the beginning of the script and press Ctrl-F (Find), type { Enter Esc Ctrl-V

You now replaced the first "{" by "Enter { Enter".

Now press F3 (Find next) and Ctrl-V until you reach the end of the script.

Do the same with }

When you've done this, you will be able to identify various script items and parts with their parameters much easier.

To make it even more clear, you can add leading tabs in front of every line to identify each item/part much easier.

Whenever a line starts with {, add one Tab more in front of the next lines.

When a line starts with }, reduce the number of Tabs leading that line and the next lines with one.

Adding spaces, Tabs or Line-breaks to a script, has no affect on the functionality as long as it is not in the middle of a word..

Here's an example:

Follow the steps above and go from something like this:

{"clockImages":{"FRAME_ITEM":{"clockItem":"FRAME_ITEM","clockImagePartTypes":["FRAME_PART"],"clockImageParts":{"FRAME_PART":{"clockImagePartType":"FRAME_PART","h":0,"w":0,"x":0,"y":0}},"alpha":0,"color":-16735512,"layerH":10,"layerW":10,"layerX":0,"layerY":0,"themeTitle":"MessToOrder","dataSampleNum":0,"baseTheme":false},"HANDS_ITEM":{"clockItem":"HANDS_ITEM","clockImagePartTypes":["HOUR_PART","MIN_PART","SEC_PART"],"clockImageParts":{"SEC_PART":{"clockImagePartType":"SEC_PART","h":0,"w":0,"x":0,"y":0},"MIN_PART":{"clockImagePartType":"MIN_PART","h":0,"w":0,"x":0,"y":0},"HOUR_PART":{"clockImagePartType":"HOUR_PART","h":0,"w":0,"x":0,"y":0}},"alpha":50,"color":-1,"layerH":10,"layerW":10,"layerX":0,"layerY":0,"themeTitle":"MessToOrder","dataSampleNum":0,"baseTheme":false},"BG_ITEM":{"clockItem":"BG_ITEM","clockImagePartTypes":["BG_PART"],"clockImageParts":{"BG_PART":{"clockImagePartType":"BG_PART","h":0,"w":0,"x":0,"y":0}},"alpha":0,"color":0,"layerH":10,"layerW":10,"layerX":0,"layerY":0,"themeTitle":"MessToOrder","dataSampleNum":-1,"baseTheme":false}},"clockTexts":{},"themeType":"ANALOG","themeTitle":"MessToOrder","dataSampleNum":-1,"baseTheme":false}

to something like this:

{
"clockImages":
{
"FRAME_ITEM":
{
"clockItem":"FRAME_ITEM","clockImagePartTypes":["FRAME_PART"],"clockImageParts":
{
"FRAME_PART":
{
"clockImagePartType":"FRAME_PART","h":0,"w":0,"x":0,"y":0
}
}
,"alpha":0,"color":-16735512,"layerH":10,"layerW":10,"layerX":0,"layerY":0,"themeTitle":"MessToOrder","dataSampleNum":0,"baseTheme":false
}
,"HANDS_ITEM":
{
"clockItem":"HANDS_ITEM","clockImagePartTypes":["HOUR_PART","MIN_PART","SEC_PART"],"clockImageParts":
{
"SEC_PART":
{
"clockImagePartType":"SEC_PART","h":0,"w":0,"x":0,"y":0
}
,"MIN_PART":
{
"clockImagePartType":"MIN_PART","h":0,"w":0,"x":0,"y":0
}
,"HOUR_PART":
{
"clockImagePartType":"HOUR_PART","h":0,"w":0,"x":0,"y":0
}
}
,"alpha":50,"color":-1,"layerH":10,"layerW":10,"layerX":0,"layerY":0,"themeTitle":"MessToOrder","dataSampleNum":0,"baseTheme":false
}
,"BG_ITEM":
{
"clockItem":"BG_ITEM","clockImagePartTypes":["BG_PART"],"clockImageParts":
{
"BG_PART":
{
"clockImagePartType":"BG_PART","h":0,"w":0,"x":0,"y":0
}
}
,"alpha":0,"color":0,"layerH":10,"layerW":10,"layerX":0,"layerY":0,"themeTitle":"MessToOrder","dataSampleNum":-1,"baseTheme":false
}
}
,"clockTexts":
{
}
,"themeType":"ANALOG","themeTitle":"MessToOrder","dataSampleNum":-1,"baseTheme":false
}

Watch Styler editor compatibilaty

After changing the theme.json file, There is a very big chance that the theme will not be compatible with Watch Styler editor anymore .

It doesn't harm to open the theme in the editor for testing. Just don't save the theme when it looks bad in the editor.

Some reasons why a theme gets incompatible with the editor:

- You applied a new font that is not available to Watch Styler editor.

- You used time/date formatting that's unknown to the editor.

- You used non-standard Item-Part structures.

Being not compatible to the editor doesn't mean the theme is wrong.

It's just not editable in a user-friendly way anymore. Only by direct script editing.

To upload a modified theme to your Gear, you'll still use the Watch Styler clock preset in Gear Manager.

- Gear Manager / Clocks / Gear wheel behind Watch Styler preset / Select modified theme