Added config section to stylesheet
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit-styling / default-theme.json
index aea0422..6b3ddd1 100644 (file)
@@ -1,4 +1,8 @@
 {
+  "config":
+  {
+    "alwaysShowFocus":false
+  },
   "constants":
   {
     "CONFIG_SCRIPT_LOG_LEVEL":"NoLogging"
             {
               "visuals":
               {
-                "foregroundVisual":
+                "testVisual":
+                {
+                  "visualType":"IMAGE",
+                  "url":"0001.png",
+                  "atlasing":true
+                },
+                "testVisual2":
                 {
                   "visualType":"GRADIENT",
                   "startPosition": [-1, -1],
                   "spreadMethod": "REPEAT",
                   "stopOffset": [0.2, 0.8],
                   "stopColor": [ [ 1,0,0,1], [0,1,0,1] ]
+                },
+                "foregroundVisual":
+                {
+                  "visualType":"IMAGE",
+                  "url":"theSameImage.png",
+                  "atlasing":true
+                },
+                "labelVisual":
+                {
+                  "visualType":"TEXT",
+                  "pointSize":8,
+                  "text":"Some text"
                 }
               }
             },
             {
               "visuals":
               {
-                "foregroundVisual":
+                "testVisual":
+                {
+                  "visualType":"IMAGE",
+                  "url":"0002.png",
+                  "atlasing":true
+                },
+                "testVisual2":
                 {
                   "visualType":"COLOR",
                   "mixColor": [ 1,0,0,1]
+                },
+                "foregroundVisual":
+                {
+                  "visualType":"IMAGE",
+                  "url":"theSameImage.png",
+                  "atlasing":true
+                },
+                "labelVisual":
+                {
+                  "visualType":"TEXT",
+                  "pointSize":8,
+                  "text":"Some different text"
                 }
               }
             }
             },
             "focusVisual":
             {
-              "visualType":"IMAGE",
-              "url": "focus.png"
+              "visualType":"NPATCH",
+              "url": "focus.9.png"
             }
           },
           "entryTransition":
         },
         "DISABLED":
         {
+          "states":
+          {
+            "SELECTED":
+            {
+              "visuals":
+              {
+                "testVisual":
+                {
+                  "visualType":"IMAGE",
+                  "url":"0001.png",
+                  "atlasing":true
+                },
+                "testVisual2":
+                {
+                  "visualType":"GRADIENT",
+                  "startPosition": [-1, -1],
+                  "endPosition": [1, 1],
+                  "spreadMethod": "REPEAT",
+                  "stopOffset": [0.2, 0.8],
+                  "stopColor": [ [ 1,0,0,1], [0,1,0,1] ]
+                }
+              }
+            }
+          },
           "visuals":
           {
             "foregroundVisual":
               "spreadMethod": "REPEAT",
               "stopOffset": [0.2, 0.8],
               "stopColor": [ [ 1,0,0,1], [0,1,0,1] ]
+            },
+            "labelVisual":
+            {
+              "visualType":"TEXT",
+              "pointSize":8,
+              "textColor":[1,0,1,1]
             }
           }
         },
               "stopOffset": [0.3, 0.9],
               "stopColor": [ [ 0,0,1,1], [0,1,1,1] ]
             },
+            "labelVisual":
+            {
+              "visualType":"TEXT",
+              "pointSize":10
+            },
             "focusVisual":
             {
               "visualType":"IMAGE",
-              "url": "focus.png"
+              "url": "focus.png",
+              "atlasing":true
             }
           },
           "entryTransition":
             {
               "visualType":"COLOR",
               "mixColor": [1,0,0,1]
+            },
+            "labelVisual":
+            {
+              "visualType":"TEXT",
+              "pointSize":9,
+              "textColor":[1,1,1,1]
             }
           }
         }
           }
         }
       ]
+    },
+    "NoStateStyle":
+    {
+      "testVisual2":
+      {
+        "visualType":"COLOR",
+        "mixColor":[1,1,1,1]
+      }
     }
   }
 }