/*
- * Copyright (c) 2000-2016 Samsung Electronics Co., Ltd
-
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*/
{
+ "includes":
+ [
+ "{APPLICATION_RESOURCE_PATH}/style/base-theme.json"
+ ],
+
"styles":
{
- "CustomPopupStyle":{
- "popupBackgroundImage":"{APPLICATION_RESOURCE_PATH}/images/popup.9.png",
- "popupBackgroundBorder":[0,4,4,0],
- "tailUpImage":"{APPLICATION_RESOURCE_PATH}/images/popup-tail-up.png",
- "tailDownImage":"{APPLICATION_RESOURCE_PATH}/images/popup-tail-down.png",
- "tailLeftImage":"{APPLICATION_RESOURCE_PATH}/images/popup-tail-left.png",
- "tailRightImage":"{APPLICATION_RESOURCE_PATH}/images/popup-tail-right.png"
- },
-
"DemoTile":
{
- "states":
- {
- "NORMAL":
- {
- "color":[0.4, 0.6, 0.9, 0.6],
- "visuals":
- {
- "image":
- {
- "url":"{APPLICATION_RESOURCE_PATH}/images/demo-tile-texture.9.png",
-// TILE_BACKGROUND_ALPHA
-// This shader takes a texture.
-// An alpha discard is performed.
-// The shader uses the tiles position within the scroll-view page and the scroll-views rotation position to create a parallax effect.
- "shader":
- {
- "fragmentShader":[
- " varying mediump vec2 vTexCoord;",
- " uniform lowp vec4 uColor;",
- " uniform sampler2D sTexture;",
- " uniform mediump vec3 uCustomPosition;",
- "",
- " void main()",
- " {",
- " if( texture2D( sTexture, vTexCoord ).a <= 0.0001 )",
- " {",
- " discard;",
- " }",
- "",
- " mediump vec2 wrapTexCoord = vec2( ( vTexCoord.x / 4.0 ) + ( uCustomPosition.x / 4.0 ) + ( uCustomPosition.z / 2.0 ), vTexCoord.y / 4.0 );",
- " mediump vec4 color = texture2D( sTexture, wrapTexCoord );",
- " mediump float positionWeight = ( uCustomPosition.y + 0.3 ) * color.r * 2.0;",
- "",
- " gl_FragColor = vec4( positionWeight, positionWeight, positionWeight, 0.9 ) * uColor + vec4( uColor.xyz, 0.0 );",
- " }"
- ]
- }
- }
- }
- },
- "FOCUSED":
- {
- "color":[0.3, 0.5, 0.8, 0.5],
- "visuals":
- {
- "image":
- {
- "url":"{APPLICATION_RESOURCE_PATH}/images/demo-tile-texture-focused.9.png",
-// TILE_BACKGROUND_ALPHA
-// This shader takes a texture.
-// An alpha discard is performed.
-// The shader uses the tiles position within the scroll-view page and the scroll-views rotation position to create a parallax effect.
- "shader":
- {
- "fragmentShader":[
- " varying mediump vec2 vTexCoord;",
- " uniform lowp vec4 uColor;",
- " uniform sampler2D sTexture;",
- " uniform mediump vec3 uCustomPosition;",
- "",
- " void main()",
- " {",
- " if( texture2D( sTexture, vTexCoord ).a <= 0.0001 )",
- " {",
- " discard;",
- " }",
- "",
- " mediump vec2 wrapTexCoord = vec2( ( vTexCoord.x / 4.0 ) + ( uCustomPosition.x / 4.0 ) + ( uCustomPosition.z / 2.0 ), vTexCoord.y / 4.0 );",
- " mediump vec4 color = texture2D( sTexture, wrapTexCoord );",
- " mediump float positionWeight = ( uCustomPosition.y + 0.3 ) * color.r * 2.0;",
- "",
- " gl_FragColor = vec4( positionWeight, positionWeight, positionWeight, 0.9 ) * uColor + vec4( uColor.xyz, 0.0 );",
- " }"
- ]
- }
- }
- }
- }
- }
- },
- "FocusActor":
- {
- "visuals":
- {
- "image":
- {
- "url":"{APPLICATION_RESOURCE_PATH}/images/tile-focus.9.png"
- }
- }
+ "styles":[ "DemoTileBase" ]
},
- "DemoTileBorder":
+
+ "LauncherBackground":
{
- "visuals":
+ "background":
{
- "image":
- {
- "url":"{APPLICATION_RESOURCE_PATH}/images/item-background.9.png" // TILE_BACKGROUND
- }
+ "visualType": "GRADIENT",
+ "center": [360, 640],
+ "radius": 1468,
+ "units": "USER_SPACE",
+ "stopColor": [[0.247,0.38,0.52,1.0],[0.055,0.18,0.286,1.0]]
}
},
- "TextLabelRosemary":
- {
- "fontFamily":"Rosemary"
- },
- "TextLabel":
- {
- "fontStyle":{"weight":"normal"},
- "pointSize":18
- },
- "TextLabelFontSize0":
- {
- "pointSize":8
- },
- "TextLabelFontSize1":
- {
- "pointSize":10
- },
- "TextLabelFontSize2":
- {
- "pointSize":15
- },
- "TextLabelFontSize3":
- {
- "pointSize":19
- },
- "TextLabelFontSize4":
- {
- "pointSize":25
- },
-
- "Launcherlabel":
- {
- "pointSize":8
- },
-
- "ToolbarLabel":
- {
- "pointSize":10
- },
-
- "BuilderLabel":
- {
- "pointSize":10
- },
- "ScrollView":
+ "BubbleColor1":
{
- "overshootEffectColor":"B018"
+ "color": [ 0.3255, 0.3412, 0.6353, 0.32 ]
},
- "GroupLabel":
+ "BubbleColor2":
{
- "pointSize":6
+ "color": [ 0.3647, 0.7569, 0.8157, 0.32 ]
},
- "LauncherBackground":
+ "BubbleColor3":
{
- "background":
- {
- "visualType": "GRADIENT",
- "center": [360, 640],
- "radius": 1468,
- "units": "USER_SPACE",
- "stopColor": [[0.247,0.38,0.52,1.0],[0.055,0.18,0.286,1.0]]
- }
+ "color": [ 0.3804, 0.7412, 0.6510, 0.32 ]
},
- "ChangeLayoutButton":
+ "BubbleColor4":
{
- "label":{
- "pointSize":5
- }
+ "color": [ 1, 1, 1, 0.13 ]
}
+
}
}