Commit cbd40766a65849c4eb71533d4676555647056287
Committed by
Gerrit Code Review
Merge "Fixed up styling following toolkit string comparison" into devel/master
Showing
13 changed files
with
83 additions
and
82 deletions
build/tizen/CMakeLists.txt
| @@ -56,7 +56,7 @@ SET(DEMO_EXAMPLE_BIN \\"${BINDIR}/\\") | @@ -56,7 +56,7 @@ SET(DEMO_EXAMPLE_BIN \\"${BINDIR}/\\") | ||
| 56 | SET(DEMO_LOCALE_DIR \\"${LOCALE_DIR}\\") | 56 | SET(DEMO_LOCALE_DIR \\"${LOCALE_DIR}\\") |
| 57 | SET(DEMO_LANG \\"${LANG}\\") | 57 | SET(DEMO_LANG \\"${LANG}\\") |
| 58 | 58 | ||
| 59 | -SET(DEMO_STYLE_IMAGE_DIR ${STYLE_DIR}images) | 59 | +SET(DEMO_STYLE_IMAGE_DIR ${STYLE_DIR}/images) |
| 60 | 60 | ||
| 61 | FILE(GLOB LOCAL_IMAGES_PNG RELATIVE "${LOCAL_IMAGES_DIR}" "${LOCAL_IMAGES_DIR}/*.png") | 61 | FILE(GLOB LOCAL_IMAGES_PNG RELATIVE "${LOCAL_IMAGES_DIR}" "${LOCAL_IMAGES_DIR}/*.png") |
| 62 | FILE(GLOB LOCAL_IMAGES_JPG RELATIVE "${LOCAL_IMAGES_DIR}" "${LOCAL_IMAGES_DIR}/*.jpg") | 62 | FILE(GLOB LOCAL_IMAGES_JPG RELATIVE "${LOCAL_IMAGES_DIR}" "${LOCAL_IMAGES_DIR}/*.jpg") |
demo/dali-table-view.cpp
| @@ -63,7 +63,7 @@ Control CreateBackground( std::string stylename ) | @@ -63,7 +63,7 @@ Control CreateBackground( std::string stylename ) | ||
| 63 | { | 63 | { |
| 64 | Control background = Control::New(); | 64 | Control background = Control::New(); |
| 65 | Stage::GetCurrent().Add( background ); | 65 | Stage::GetCurrent().Add( background ); |
| 66 | - background.SetProperty( Control::Property::STYLE_NAME,stylename); | 66 | + background.SetStyleName( stylename); |
| 67 | background.SetName( "BACKGROUND" ); | 67 | background.SetName( "BACKGROUND" ); |
| 68 | background.SetAnchorPoint( AnchorPoint::CENTER ); | 68 | background.SetAnchorPoint( AnchorPoint::CENTER ); |
| 69 | background.SetParentOrigin( ParentOrigin::CENTER ); | 69 | background.SetParentOrigin( ParentOrigin::CENTER ); |
| @@ -123,7 +123,7 @@ void DaliTableView::Initialize( Application& application ) | @@ -123,7 +123,7 @@ void DaliTableView::Initialize( Application& application ) | ||
| 123 | const Vector2 stageSize = Stage::GetCurrent().GetSize(); | 123 | const Vector2 stageSize = Stage::GetCurrent().GetSize(); |
| 124 | 124 | ||
| 125 | // Background | 125 | // Background |
| 126 | - Control background = CreateBackground( "launcherbackground" ); | 126 | + Control background = CreateBackground( "LauncherBackground" ); |
| 127 | Stage::GetCurrent().Add( background ); | 127 | Stage::GetCurrent().Add( background ); |
| 128 | 128 | ||
| 129 | // Add root actor | 129 | // Add root actor |
| @@ -378,7 +378,7 @@ Actor DaliTableView::CreateTile( const std::string& name, const std::string& tit | @@ -378,7 +378,7 @@ Actor DaliTableView::CreateTile( const std::string& name, const std::string& tit | ||
| 378 | // Create the tile label. | 378 | // Create the tile label. |
| 379 | TextLabel label = TextLabel::New(); | 379 | TextLabel label = TextLabel::New(); |
| 380 | label.SetAnchorPoint( AnchorPoint::TOP_LEFT ); | 380 | label.SetAnchorPoint( AnchorPoint::TOP_LEFT ); |
| 381 | - label.SetProperty( Control::Property::STYLE_NAME, "launcherlabel" ); | 381 | + label.SetStyleName( "LauncherLabel" ); |
| 382 | label.SetProperty( TextLabel::Property::MULTI_LINE, true ); | 382 | label.SetProperty( TextLabel::Property::MULTI_LINE, true ); |
| 383 | label.SetProperty( TextLabel::Property::TEXT, title ); | 383 | label.SetProperty( TextLabel::Property::TEXT, title ); |
| 384 | label.SetProperty( TextLabel::Property::HORIZONTAL_ALIGNMENT, "CENTER" ); | 384 | label.SetProperty( TextLabel::Property::HORIZONTAL_ALIGNMENT, "CENTER" ); |
examples/builder/examples.cpp
| @@ -387,7 +387,7 @@ public: | @@ -387,7 +387,7 @@ public: | ||
| 387 | Actor MenuItem(const std::string& text) | 387 | Actor MenuItem(const std::string& text) |
| 388 | { | 388 | { |
| 389 | TextLabel label = TextLabel::New( ShortName( text ) ); | 389 | TextLabel label = TextLabel::New( ShortName( text ) ); |
| 390 | - label.SetProperty( Dali::Toolkit::Control::Property::STYLE_NAME, "builderlabel" ); | 390 | + label.SetStyleName( "BuilderLabel" ); |
| 391 | label.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH ); | 391 | label.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH ); |
| 392 | 392 | ||
| 393 | // Hook up tap detector | 393 | // Hook up tap detector |
examples/image-scaling-and-filtering/image-scaling-and-filtering-example.cpp
| @@ -45,9 +45,8 @@ const char* const SAMPLING_BUTTON_ID = "SAMPLING_BUTTON"; | @@ -45,9 +45,8 @@ const char* const SAMPLING_BUTTON_ID = "SAMPLING_BUTTON"; | ||
| 45 | const char* const FITTING_BUTTON_TEXT = "Fitting"; | 45 | const char* const FITTING_BUTTON_TEXT = "Fitting"; |
| 46 | const char* const SAMPLING_BUTTON_TEXT = "Sampling"; | 46 | const char* const SAMPLING_BUTTON_TEXT = "Sampling"; |
| 47 | 47 | ||
| 48 | -const char* const STYLE_LABEL_TEXT = "grouplabel"; | ||
| 49 | -const char* const STYLE_BUTTON_TEXT = "buttonlabel"; | ||
| 50 | - | 48 | +const char* const STYLE_LABEL_TEXT = "ImageScalingGroupLabel"; |
| 49 | +const char* const STYLE_BUTTON_TEXT = "ImageScalingButton"; | ||
| 51 | 50 | ||
| 52 | const char* IMAGE_PATHS[] = | 51 | const char* IMAGE_PATHS[] = |
| 53 | { | 52 | { |
| @@ -336,7 +335,7 @@ public: | @@ -336,7 +335,7 @@ public: | ||
| 336 | fittingModeGroup.SetFitHeight( 1 ); | 335 | fittingModeGroup.SetFitHeight( 1 ); |
| 337 | 336 | ||
| 338 | TextLabel label = TextLabel::New( "Image fitting mode:" ); | 337 | TextLabel label = TextLabel::New( "Image fitting mode:" ); |
| 339 | - label.SetProperty( Toolkit::Control::Property::STYLE_NAME, STYLE_LABEL_TEXT ); | 338 | + label.SetStyleName( STYLE_LABEL_TEXT ); |
| 340 | fittingModeGroup.Add( label ); | 339 | fittingModeGroup.Add( label ); |
| 341 | 340 | ||
| 342 | Toolkit::PushButton button = CreateButton( FITTING_BUTTON_ID, StringFromScalingMode( mFittingMode ) ); | 341 | Toolkit::PushButton button = CreateButton( FITTING_BUTTON_ID, StringFromScalingMode( mFittingMode ) ); |
| @@ -357,7 +356,7 @@ public: | @@ -357,7 +356,7 @@ public: | ||
| 357 | samplingModeGroup.SetFitHeight( 1 ); | 356 | samplingModeGroup.SetFitHeight( 1 ); |
| 358 | 357 | ||
| 359 | TextLabel label = TextLabel::New( "Image sampling mode:" ); | 358 | TextLabel label = TextLabel::New( "Image sampling mode:" ); |
| 360 | - label.SetProperty( Toolkit::Control::Property::STYLE_NAME, STYLE_LABEL_TEXT ); | 359 | + label.SetStyleName( STYLE_LABEL_TEXT ); |
| 361 | samplingModeGroup.Add( label ); | 360 | samplingModeGroup.Add( label ); |
| 362 | 361 | ||
| 363 | Toolkit::PushButton button = CreateButton( SAMPLING_BUTTON_ID, StringFromFilterMode( mSamplingMode ) ); | 362 | Toolkit::PushButton button = CreateButton( SAMPLING_BUTTON_ID, StringFromFilterMode( mSamplingMode ) ); |
| @@ -371,7 +370,7 @@ public: | @@ -371,7 +370,7 @@ public: | ||
| 371 | Toolkit::PushButton CreateButton( const char * id, const char * label ) | 370 | Toolkit::PushButton CreateButton( const char * id, const char * label ) |
| 372 | { | 371 | { |
| 373 | Toolkit::PushButton button = Toolkit::PushButton::New(); | 372 | Toolkit::PushButton button = Toolkit::PushButton::New(); |
| 374 | - button.SetProperty( Toolkit::Control::Property::STYLE_NAME, STYLE_BUTTON_TEXT ); | 373 | + button.SetStyleName( STYLE_BUTTON_TEXT ); |
| 375 | button.SetName( id ); | 374 | button.SetName( id ); |
| 376 | button.SetLabelText( label ); | 375 | button.SetLabelText( label ); |
| 377 | button.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH ); | 376 | button.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH ); |
examples/styling/styling-application.cpp
| @@ -135,7 +135,7 @@ void StylingApplication::Create( Application& application ) | @@ -135,7 +135,7 @@ void StylingApplication::Create( Application& application ) | ||
| 135 | 135 | ||
| 136 | mTitle = TextLabel::New( "Styling Example" ); | 136 | mTitle = TextLabel::New( "Styling Example" ); |
| 137 | mTitle.SetName( "Title" ); | 137 | mTitle.SetName( "Title" ); |
| 138 | - mTitle.SetStyleName("title"); | 138 | + mTitle.SetStyleName("Title"); |
| 139 | mTitle.SetAnchorPoint( AnchorPoint::TOP_CENTER ); | 139 | mTitle.SetAnchorPoint( AnchorPoint::TOP_CENTER ); |
| 140 | mTitle.SetParentOrigin( ParentOrigin::TOP_CENTER ); | 140 | mTitle.SetParentOrigin( ParentOrigin::TOP_CENTER ); |
| 141 | mTitle.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH ); | 141 | mTitle.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH ); |
| @@ -246,7 +246,7 @@ void StylingApplication::Create( Application& application ) | @@ -246,7 +246,7 @@ void StylingApplication::Create( Application& application ) | ||
| 246 | channelSliderLayout.SetCellAlignment( TableView::CellPosition( i, 0 ), HorizontalAlignment::CENTER, VerticalAlignment::CENTER ); | 246 | channelSliderLayout.SetCellAlignment( TableView::CellPosition( i, 0 ), HorizontalAlignment::CENTER, VerticalAlignment::CENTER ); |
| 247 | 247 | ||
| 248 | TextLabel label = TextLabel::New( checkboxLabels[i] ); | 248 | TextLabel label = TextLabel::New( checkboxLabels[i] ); |
| 249 | - std::ostringstream labelStyleName; labelStyleName << "colorLabel" << i+1; | 249 | + std::ostringstream labelStyleName; labelStyleName << "ColorLabel" << i+1; |
| 250 | label.SetName( labelStyleName.str() ); | 250 | label.SetName( labelStyleName.str() ); |
| 251 | label.SetStyleName( labelStyleName.str() ); | 251 | label.SetStyleName( labelStyleName.str() ); |
| 252 | label.SetParentOrigin( ParentOrigin::CENTER ); | 252 | label.SetParentOrigin( ParentOrigin::CENTER ); |
| @@ -258,7 +258,7 @@ void StylingApplication::Create( Application& application ) | @@ -258,7 +258,7 @@ void StylingApplication::Create( Application& application ) | ||
| 258 | channelSliderLayout.SetCellAlignment( TableView::CellPosition( i, 1 ), HorizontalAlignment::CENTER, VerticalAlignment::CENTER ); | 258 | channelSliderLayout.SetCellAlignment( TableView::CellPosition( i, 1 ), HorizontalAlignment::CENTER, VerticalAlignment::CENTER ); |
| 259 | 259 | ||
| 260 | mChannelSliders[i] = Slider::New(); | 260 | mChannelSliders[i] = Slider::New(); |
| 261 | - std::ostringstream sliderStyleName; sliderStyleName << "colorSlider" << i+1; | 261 | + std::ostringstream sliderStyleName; sliderStyleName << "ColorSlider" << i+1; |
| 262 | mChannelSliders[i].SetName( sliderStyleName.str() ); | 262 | mChannelSliders[i].SetName( sliderStyleName.str() ); |
| 263 | mChannelSliders[i].SetStyleName( sliderStyleName.str() ); | 263 | mChannelSliders[i].SetStyleName( sliderStyleName.str() ); |
| 264 | mChannelSliders[i].SetParentOrigin( ParentOrigin::CENTER ); | 264 | mChannelSliders[i].SetParentOrigin( ParentOrigin::CENTER ); |
| @@ -302,7 +302,7 @@ void StylingApplication::Create( Application& application ) | @@ -302,7 +302,7 @@ void StylingApplication::Create( Application& application ) | ||
| 302 | 302 | ||
| 303 | TextLabel label = TextLabel::New( "Theme: "); | 303 | TextLabel label = TextLabel::New( "Theme: "); |
| 304 | label.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::ALL_DIMENSIONS ); | 304 | label.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::ALL_DIMENSIONS ); |
| 305 | - label.SetStyleName("themelabel"); | 305 | + label.SetStyleName("ThemeLabel"); |
| 306 | label.SetAnchorPoint( AnchorPoint::TOP_CENTER ); | 306 | label.SetAnchorPoint( AnchorPoint::TOP_CENTER ); |
| 307 | label.SetParentOrigin( ParentOrigin::TOP_CENTER ); | 307 | label.SetParentOrigin( ParentOrigin::TOP_CENTER ); |
| 308 | themeButtonLayout.AddChild( label, TableView::CellPosition( 0, 0 ) ); | 308 | themeButtonLayout.AddChild( label, TableView::CellPosition( 0, 0 ) ); |
| @@ -386,7 +386,7 @@ Popup StylingApplication::CreateResetPopup() | @@ -386,7 +386,7 @@ Popup StylingApplication::CreateResetPopup() | ||
| 386 | 386 | ||
| 387 | TextLabel text = TextLabel::New( "This will reset the channel data to full value. Are you sure?" ); | 387 | TextLabel text = TextLabel::New( "This will reset the channel data to full value. Are you sure?" ); |
| 388 | text.SetName( "PopupContentText" ); | 388 | text.SetName( "PopupContentText" ); |
| 389 | - text.SetStyleName( "popupBody" ); | 389 | + text.SetStyleName( "PopupBody" ); |
| 390 | text.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH ); | 390 | text.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH ); |
| 391 | text.SetResizePolicy( ResizePolicy::DIMENSION_DEPENDENCY, Dimension::HEIGHT ); | 391 | text.SetResizePolicy( ResizePolicy::DIMENSION_DEPENDENCY, Dimension::HEIGHT ); |
| 392 | text.SetProperty( TextLabel::Property::MULTI_LINE, true ); | 392 | text.SetProperty( TextLabel::Property::MULTI_LINE, true ); |
| @@ -442,7 +442,7 @@ TextLabel StylingApplication::CreateTitle( std::string title ) | @@ -442,7 +442,7 @@ TextLabel StylingApplication::CreateTitle( std::string title ) | ||
| 442 | { | 442 | { |
| 443 | TextLabel titleActor = TextLabel::New( title ); | 443 | TextLabel titleActor = TextLabel::New( title ); |
| 444 | titleActor.SetName( "titleActor" ); | 444 | titleActor.SetName( "titleActor" ); |
| 445 | - titleActor.SetStyleName( "popupTitle" ); | 445 | + titleActor.SetStyleName( "PopupTitle" ); |
| 446 | titleActor.SetProperty( TextLabel::Property::HORIZONTAL_ALIGNMENT, "CENTER" ); | 446 | titleActor.SetProperty( TextLabel::Property::HORIZONTAL_ALIGNMENT, "CENTER" ); |
| 447 | titleActor.SetProperty( TextLabel::Property::MULTI_LINE, false ); | 447 | titleActor.SetProperty( TextLabel::Property::MULTI_LINE, false ); |
| 448 | 448 |
examples/text-fonts/text-fonts-example.cpp
| @@ -185,7 +185,7 @@ public: | @@ -185,7 +185,7 @@ public: | ||
| 185 | CreateTextLabel ( mLabel, LABEL_TEXT, Color::WHITE ); | 185 | CreateTextLabel ( mLabel, LABEL_TEXT, Color::WHITE ); |
| 186 | 186 | ||
| 187 | CreateTextLabel ( mLabel2, LABEL_TEXT, Color::WHITE ); | 187 | CreateTextLabel ( mLabel2, LABEL_TEXT, Color::WHITE ); |
| 188 | - mLabel2.SetStyleName("textlabel-Rosemary"); | 188 | + mLabel2.SetStyleName("TextLabelRosemary"); |
| 189 | 189 | ||
| 190 | CreateTextLabel ( mLabel3, LABEL_TEXT, Color::WHITE ); | 190 | CreateTextLabel ( mLabel3, LABEL_TEXT, Color::WHITE ); |
| 191 | mLabel3.SetProperty( TextLabel::Property::FONT_FAMILY, "SamsungOneUI" ); | 191 | mLabel3.SetProperty( TextLabel::Property::FONT_FAMILY, "SamsungOneUI" ); |
resources/style/demo-theme.json.in
| @@ -17,50 +17,52 @@ | @@ -17,50 +17,52 @@ | ||
| 17 | { | 17 | { |
| 18 | "styles": | 18 | "styles": |
| 19 | { | 19 | { |
| 20 | - "confirmationpopup":{ | 20 | + "ConfirmationPopup":{ |
| 21 | "popupBackgroundImage":"{APPLICATION_RESOURCE_PATH}/images/00_popup_bg.9.png" | 21 | "popupBackgroundImage":"{APPLICATION_RESOURCE_PATH}/images/00_popup_bg.9.png" |
| 22 | }, | 22 | }, |
| 23 | 23 | ||
| 24 | - "textlabel-Rosemary": | 24 | + "TextLabelRosemary": |
| 25 | { | 25 | { |
| 26 | "fontFamily":"Rosemary" | 26 | "fontFamily":"Rosemary" |
| 27 | }, | 27 | }, |
| 28 | - "textlabel": | 28 | + "TextLabel": |
| 29 | { | 29 | { |
| 30 | "fontStyle":"Regular", | 30 | "fontStyle":"Regular", |
| 31 | "pointSize":18 | 31 | "pointSize":18 |
| 32 | }, | 32 | }, |
| 33 | - "launcherlabel": | 33 | + "LauncherLabel": |
| 34 | { | 34 | { |
| 35 | "pointSize":18 | 35 | "pointSize":18 |
| 36 | }, | 36 | }, |
| 37 | 37 | ||
| 38 | - "toolbarlabel": | 38 | + "ToolbarLabel": |
| 39 | { | 39 | { |
| 40 | "pointSize":18 | 40 | "pointSize":18 |
| 41 | }, | 41 | }, |
| 42 | 42 | ||
| 43 | - "builderlabel": | 43 | + "BuilderLabel": |
| 44 | { | 44 | { |
| 45 | "pointSize":13 | 45 | "pointSize":13 |
| 46 | }, | 46 | }, |
| 47 | 47 | ||
| 48 | - "scrollview": | 48 | + "ScrollView": |
| 49 | { | 49 | { |
| 50 | "overshootEffectColor":"B018" | 50 | "overshootEffectColor":"B018" |
| 51 | }, | 51 | }, |
| 52 | 52 | ||
| 53 | - "grouplabel": | 53 | + "ImageScalingGroupLabel": |
| 54 | { | 54 | { |
| 55 | "pointSize":9 | 55 | "pointSize":9 |
| 56 | }, | 56 | }, |
| 57 | 57 | ||
| 58 | - "buttonlabel": | 58 | + "ImageScalingButton": |
| 59 | { | 59 | { |
| 60 | - "pointSize":11 | 60 | + "label":{ |
| 61 | + "pointSize":11 | ||
| 62 | + } | ||
| 61 | }, | 63 | }, |
| 62 | 64 | ||
| 63 | - "launcherbackground": | 65 | + "LauncherBackground": |
| 64 | { | 66 | { |
| 65 | "background": | 67 | "background": |
| 66 | { | 68 | { |
resources/style/images/00_popup_bg.9.png
0 โ 100644
1.52 KB
resources/style/mobile/demo-theme.json.in
| @@ -18,67 +18,67 @@ | @@ -18,67 +18,67 @@ | ||
| 18 | { | 18 | { |
| 19 | "styles": | 19 | "styles": |
| 20 | { | 20 | { |
| 21 | - "textlabel-Rosemary": | 21 | + "TextLabelRosemary": |
| 22 | { | 22 | { |
| 23 | "fontFamily":"Rosemary" | 23 | "fontFamily":"Rosemary" |
| 24 | }, | 24 | }, |
| 25 | - "textlabel": | 25 | + "TextLabel": |
| 26 | { | 26 | { |
| 27 | "fontStyle":"Regular", | 27 | "fontStyle":"Regular", |
| 28 | "pointSize":18 | 28 | "pointSize":18 |
| 29 | }, | 29 | }, |
| 30 | - "textlabelFontSize0": | 30 | + "TextLabelFontSize0": |
| 31 | { | 31 | { |
| 32 | "pointSize":8 | 32 | "pointSize":8 |
| 33 | }, | 33 | }, |
| 34 | - "textlabelFontSize1": | 34 | + "TextLabelFontSize1": |
| 35 | { | 35 | { |
| 36 | "pointSize":10 | 36 | "pointSize":10 |
| 37 | }, | 37 | }, |
| 38 | - "textlabelFontSize2": | 38 | + "TextLabelFontSize2": |
| 39 | { | 39 | { |
| 40 | "pointSize":15 | 40 | "pointSize":15 |
| 41 | }, | 41 | }, |
| 42 | - "textlabelFontSize3": | 42 | + "TextLabelFontSize3": |
| 43 | { | 43 | { |
| 44 | "pointSize":19 | 44 | "pointSize":19 |
| 45 | }, | 45 | }, |
| 46 | - "textlabelFontSize4": | 46 | + "TextLabelFontSize4": |
| 47 | { | 47 | { |
| 48 | "pointSize":25 | 48 | "pointSize":25 |
| 49 | }, | 49 | }, |
| 50 | 50 | ||
| 51 | - "launcherlabel": | 51 | + "Launcherlabel": |
| 52 | { | 52 | { |
| 53 | "pointSize":8 | 53 | "pointSize":8 |
| 54 | }, | 54 | }, |
| 55 | 55 | ||
| 56 | - "toolbarlabel": | 56 | + "ToolbarLabel": |
| 57 | { | 57 | { |
| 58 | "pointSize":10 | 58 | "pointSize":10 |
| 59 | }, | 59 | }, |
| 60 | 60 | ||
| 61 | - "builderlabel": | 61 | + "BuilderLabel": |
| 62 | { | 62 | { |
| 63 | "pointSize":10 | 63 | "pointSize":10 |
| 64 | }, | 64 | }, |
| 65 | 65 | ||
| 66 | - "scrollview": | 66 | + "ScrollView": |
| 67 | { | 67 | { |
| 68 | "overshootEffectColor":"B018" | 68 | "overshootEffectColor":"B018" |
| 69 | }, | 69 | }, |
| 70 | 70 | ||
| 71 | - "grouplabel": | 71 | + "GroupLabel": |
| 72 | { | 72 | { |
| 73 | "pointSize":6 | 73 | "pointSize":6 |
| 74 | }, | 74 | }, |
| 75 | 75 | ||
| 76 | - "buttonlabel": | 76 | + "ButtonLabel": |
| 77 | { | 77 | { |
| 78 | "pointSize":8 | 78 | "pointSize":8 |
| 79 | }, | 79 | }, |
| 80 | 80 | ||
| 81 | - "launcherbackground": | 81 | + "LauncherBackground": |
| 82 | { | 82 | { |
| 83 | "background": | 83 | "background": |
| 84 | { | 84 | { |
resources/style/style-example-theme-one.json.in
| 1 | { | 1 | { |
| 2 | "styles": | 2 | "styles": |
| 3 | { | 3 | { |
| 4 | - "title":{ | 4 | + "Title":{ |
| 5 | "textColor":"#0000ff", | 5 | "textColor":"#0000ff", |
| 6 | "background": | 6 | "background": |
| 7 | { | 7 | { |
| @@ -9,58 +9,58 @@ | @@ -9,58 +9,58 @@ | ||
| 9 | "mixColor": [ 1.0, 1.0, 1.0, 1.0 ] | 9 | "mixColor": [ 1.0, 1.0, 1.0, 1.0 ] |
| 10 | } | 10 | } |
| 11 | }, | 11 | }, |
| 12 | - "tableview":{ | 12 | + "TableView":{ |
| 13 | "background": | 13 | "background": |
| 14 | { | 14 | { |
| 15 | "visualType":"COLOR", | 15 | "visualType":"COLOR", |
| 16 | "mixColor": [ 1.0, 1.0, 1.0, 0.03 ] | 16 | "mixColor": [ 1.0, 1.0, 1.0, 0.03 ] |
| 17 | } | 17 | } |
| 18 | }, | 18 | }, |
| 19 | - "flexcontainer":{ | 19 | + "FlexContainer":{ |
| 20 | "background": | 20 | "background": |
| 21 | { | 21 | { |
| 22 | "visualType":"COLOR", | 22 | "visualType":"COLOR", |
| 23 | "mixColor": [ 1.0, 1.0, 1.0, 0.1 ] | 23 | "mixColor": [ 1.0, 1.0, 1.0, 0.1 ] |
| 24 | } | 24 | } |
| 25 | }, | 25 | }, |
| 26 | - "radiobutton":{ | 26 | + "RadioButton":{ |
| 27 | "label":{ | 27 | "label":{ |
| 28 | "textColor": [1,1,1,1] | 28 | "textColor": [1,1,1,1] |
| 29 | } | 29 | } |
| 30 | }, | 30 | }, |
| 31 | - "checkboxbutton":{ | 31 | + "CheckBoxButton":{ |
| 32 | "label":{ | 32 | "label":{ |
| 33 | "textColor": [1,1,1,1] | 33 | "textColor": [1,1,1,1] |
| 34 | } | 34 | } |
| 35 | }, | 35 | }, |
| 36 | - "colorLabel1":{ | 36 | + "ColorLabel1":{ |
| 37 | "textColor": [1,0,0,1] | 37 | "textColor": [1,0,0,1] |
| 38 | }, | 38 | }, |
| 39 | - "colorLabel2":{ | 39 | + "ColorLabel2":{ |
| 40 | "textColor": [0,1,0,1] | 40 | "textColor": [0,1,0,1] |
| 41 | }, | 41 | }, |
| 42 | - "colorLabel3":{ | 42 | + "ColorLabel3":{ |
| 43 | "textColor": [0.3,0.3,1,1] | 43 | "textColor": [0.3,0.3,1,1] |
| 44 | }, | 44 | }, |
| 45 | - "themelabel":{ | 45 | + "ThemeLabel":{ |
| 46 | "textColor":[0,1,1,1] | 46 | "textColor":[0,1,1,1] |
| 47 | }, | 47 | }, |
| 48 | - "popupTitle":{ | 48 | + "PopupTitle":{ |
| 49 | "textColor":[1,1,1,1] | 49 | "textColor":[1,1,1,1] |
| 50 | }, | 50 | }, |
| 51 | - "popupBody":{ | 51 | + "PopupBody":{ |
| 52 | "textColor":[1,1,0,1] | 52 | "textColor":[1,1,0,1] |
| 53 | }, | 53 | }, |
| 54 | - "textlabel":{ | 54 | + "TextLabel":{ |
| 55 | "textColor":[0,0,0,1] | 55 | "textColor":[0,0,0,1] |
| 56 | }, | 56 | }, |
| 57 | - "colorSlider1":{ | ||
| 58 | - "styles":["slider"] | 57 | + "ColorSlider1":{ |
| 58 | + "styles":["Slider"] | ||
| 59 | }, | 59 | }, |
| 60 | - "colorSlider2":{ | 60 | + "ColorSlider2":{ |
| 61 | "styles":["slider"] | 61 | "styles":["slider"] |
| 62 | }, | 62 | }, |
| 63 | - "colorSlider3":{ | 63 | + "ColorSlider3":{ |
| 64 | "styles":["slider"] | 64 | "styles":["slider"] |
| 65 | } | 65 | } |
| 66 | } | 66 | } |
resources/style/style-example-theme-three.json.in
| 1 | { | 1 | { |
| 2 | "styles": | 2 | "styles": |
| 3 | { | 3 | { |
| 4 | - "title":{ | 4 | + "Title":{ |
| 5 | "textColor":"#0000ff", | 5 | "textColor":"#0000ff", |
| 6 | "background": | 6 | "background": |
| 7 | { | 7 | { |
| @@ -9,42 +9,42 @@ | @@ -9,42 +9,42 @@ | ||
| 9 | "mixColor": [ 1.0, 1.0, 1.0, 1.0 ] | 9 | "mixColor": [ 1.0, 1.0, 1.0, 1.0 ] |
| 10 | } | 10 | } |
| 11 | }, | 11 | }, |
| 12 | - "tableview":{ | 12 | + "TableView":{ |
| 13 | "background": | 13 | "background": |
| 14 | { | 14 | { |
| 15 | "visualType":"COLOR", | 15 | "visualType":"COLOR", |
| 16 | "mixColor": [ 1.0, 1.0, 1.0, 0.03 ] | 16 | "mixColor": [ 1.0, 1.0, 1.0, 0.03 ] |
| 17 | } | 17 | } |
| 18 | }, | 18 | }, |
| 19 | - "radiobutton":{ | 19 | + "RadioButton":{ |
| 20 | "label":{ | 20 | "label":{ |
| 21 | "textColor": [1,1,1,1] | 21 | "textColor": [1,1,1,1] |
| 22 | } | 22 | } |
| 23 | }, | 23 | }, |
| 24 | - "checkboxbutton":{ | 24 | + "CheckboxButton":{ |
| 25 | "label":{ | 25 | "label":{ |
| 26 | "textColor": [1,1,1,1] | 26 | "textColor": [1,1,1,1] |
| 27 | } | 27 | } |
| 28 | }, | 28 | }, |
| 29 | - "colorLabel1":{ | 29 | + "ColorLabel1":{ |
| 30 | "textColor": [1,0,0,1] | 30 | "textColor": [1,0,0,1] |
| 31 | }, | 31 | }, |
| 32 | - "colorLabel2":{ | 32 | + "ColorLabel2":{ |
| 33 | "textColor": [0,1,0,1] | 33 | "textColor": [0,1,0,1] |
| 34 | }, | 34 | }, |
| 35 | - "colorLabel3":{ | 35 | + "ColorLabel3":{ |
| 36 | "textColor": [0.3,0.3,1,1] | 36 | "textColor": [0.3,0.3,1,1] |
| 37 | }, | 37 | }, |
| 38 | - "themelabel":{ | 38 | + "ThemeLabel":{ |
| 39 | "textColor":[0,1,1,1] | 39 | "textColor":[0,1,1,1] |
| 40 | }, | 40 | }, |
| 41 | - "popupTitle":{ | 41 | + "PopupTitle":{ |
| 42 | "textColor":[1,1,1,1] | 42 | "textColor":[1,1,1,1] |
| 43 | }, | 43 | }, |
| 44 | - "popupBody":{ | 44 | + "PopupBody":{ |
| 45 | "textColor":[1,1,0,1] | 45 | "textColor":[1,1,0,1] |
| 46 | }, | 46 | }, |
| 47 | - "textlabel":{ | 47 | + "TextLabel":{ |
| 48 | "textColor":[0,0,0,1] | 48 | "textColor":[0,0,0,1] |
| 49 | } | 49 | } |
| 50 | } | 50 | } |
resources/style/style-example-theme-two.json.in
| @@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
| 5 | }, | 5 | }, |
| 6 | "styles": | 6 | "styles": |
| 7 | { | 7 | { |
| 8 | - "title":{ | 8 | + "Title":{ |
| 9 | "textColor":"#0000ff", | 9 | "textColor":"#0000ff", |
| 10 | "background": | 10 | "background": |
| 11 | { | 11 | { |
| @@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
| 13 | "mixColor": [ 1.0, 1.0, 1.0, 1.0 ] | 13 | "mixColor": [ 1.0, 1.0, 1.0, 1.0 ] |
| 14 | } | 14 | } |
| 15 | }, | 15 | }, |
| 16 | - "tableview":{ | 16 | + "TableView":{ |
| 17 | "background": | 17 | "background": |
| 18 | { | 18 | { |
| 19 | "visualType":"GRADIENT", | 19 | "visualType":"GRADIENT", |
| @@ -24,7 +24,7 @@ | @@ -24,7 +24,7 @@ | ||
| 24 | }, | 24 | }, |
| 25 | 25 | ||
| 26 | // Change an icon size, see if it gets properly re-sized | 26 | // Change an icon size, see if it gets properly re-sized |
| 27 | - "radiobutton":{ | 27 | + "RadioButton":{ |
| 28 | "unselectedStateImage":"{STYLE_DIR}/images/radio-button-unselected.png", | 28 | "unselectedStateImage":"{STYLE_DIR}/images/radio-button-unselected.png", |
| 29 | "selectedStateImage":"{STYLE_DIR}/images/radio-button-selected.png", | 29 | "selectedStateImage":"{STYLE_DIR}/images/radio-button-selected.png", |
| 30 | "disabledStateImage":"{STYLE_DIR}/images/radio-button-unselected-disabled.png", | 30 | "disabledStateImage":"{STYLE_DIR}/images/radio-button-unselected-disabled.png", |
| @@ -58,11 +58,11 @@ | @@ -58,11 +58,11 @@ | ||
| 58 | }, | 58 | }, |
| 59 | 59 | ||
| 60 | // Note, this overrides any non-renamed label styles, e.g. those in a button. | 60 | // Note, this overrides any non-renamed label styles, e.g. those in a button. |
| 61 | - "textlabel":{ | 61 | + "TextLabel":{ |
| 62 | //"textColor":[0,0,0,1] | 62 | //"textColor":[0,0,0,1] |
| 63 | }, | 63 | }, |
| 64 | 64 | ||
| 65 | - "thinslider":{ | 65 | + "ThinSlider":{ |
| 66 | "styles": ["slider"], | 66 | "styles": ["slider"], |
| 67 | "showPopup":true, | 67 | "showPopup":true, |
| 68 | "showValue":false, | 68 | "showValue":false, |
| @@ -75,19 +75,19 @@ | @@ -75,19 +75,19 @@ | ||
| 75 | }, | 75 | }, |
| 76 | "enabled":true | 76 | "enabled":true |
| 77 | }, | 77 | }, |
| 78 | - "colorSlider1":{ | ||
| 79 | - "styles":["thinslider"], | 78 | + "ColorSlider1":{ |
| 79 | + "styles":["ThinSlider"], | ||
| 80 | "progressVisual":{ | 80 | "progressVisual":{ |
| 81 | "url":"{STYLE_DIR}/images/slider-skin-progress-red.9.png" | 81 | "url":"{STYLE_DIR}/images/slider-skin-progress-red.9.png" |
| 82 | } | 82 | } |
| 83 | }, | 83 | }, |
| 84 | - "colorSlider2":{ | ||
| 85 | - "styles":["thinslider"], | 84 | + "ColorSlider2":{ |
| 85 | + "styles":["ThinSlider"], | ||
| 86 | "progressVisual":{ | 86 | "progressVisual":{ |
| 87 | "url":"{STYLE_DIR}/images/slider-skin-progress-green.9.png" | 87 | "url":"{STYLE_DIR}/images/slider-skin-progress-green.9.png" |
| 88 | } | 88 | } |
| 89 | }, | 89 | }, |
| 90 | - "colorSlider3":{ | 90 | + "ColorSlider3":{ |
| 91 | "styles":["thinslider"], | 91 | "styles":["thinslider"], |
| 92 | "progressVisual":{ | 92 | "progressVisual":{ |
| 93 | "url":"{STYLE_DIR}/images/slider-skin-progress-blue.9.png" | 93 | "url":"{STYLE_DIR}/images/slider-skin-progress-blue.9.png" |
shared/view.h
| @@ -94,7 +94,7 @@ Dali::Layer CreateToolbar( Dali::Toolkit::ToolBar& toolBar, | @@ -94,7 +94,7 @@ Dali::Layer CreateToolbar( Dali::Toolkit::ToolBar& toolBar, | ||
| 94 | { | 94 | { |
| 95 | Dali::Toolkit::TextLabel label = Dali::Toolkit::TextLabel::New(); | 95 | Dali::Toolkit::TextLabel label = Dali::Toolkit::TextLabel::New(); |
| 96 | label.SetAnchorPoint( Dali::AnchorPoint::TOP_LEFT ); | 96 | label.SetAnchorPoint( Dali::AnchorPoint::TOP_LEFT ); |
| 97 | - label.SetProperty( Dali::Toolkit::Control::Property::STYLE_NAME, "toolbarlabel" ); | 97 | + label.SetStyleName( "ToolbarLabel" ); |
| 98 | label.SetProperty( Dali::Toolkit::TextLabel::Property::TEXT, title ); | 98 | label.SetProperty( Dali::Toolkit::TextLabel::Property::TEXT, title ); |
| 99 | label.SetProperty( Dali::Toolkit::TextLabel::Property::HORIZONTAL_ALIGNMENT, "CENTER" ); | 99 | label.SetProperty( Dali::Toolkit::TextLabel::Property::HORIZONTAL_ALIGNMENT, "CENTER" ); |
| 100 | label.SetProperty( Dali::Toolkit::TextLabel::Property::VERTICAL_ALIGNMENT, "CENTER" ); | 100 | label.SetProperty( Dali::Toolkit::TextLabel::Property::VERTICAL_ALIGNMENT, "CENTER" ); |
| @@ -168,7 +168,7 @@ Dali::Layer CreateView( Dali::Application& application, | @@ -168,7 +168,7 @@ Dali::Layer CreateView( Dali::Application& application, | ||
| 168 | Dali::Toolkit::TextLabel CreateToolBarLabel( const std::string& text ) | 168 | Dali::Toolkit::TextLabel CreateToolBarLabel( const std::string& text ) |
| 169 | { | 169 | { |
| 170 | Dali::Toolkit::TextLabel label = Dali::Toolkit::TextLabel::New( text ); | 170 | Dali::Toolkit::TextLabel label = Dali::Toolkit::TextLabel::New( text ); |
| 171 | - label.SetProperty( Dali::Toolkit::Control::Property::STYLE_NAME, "toolbarlabel" ); | 171 | + label.SetStyleName( "ToolbarLabel" ); |
| 172 | label.SetProperty( Dali::Toolkit::TextLabel::Property::HORIZONTAL_ALIGNMENT, "CENTER" ); | 172 | label.SetProperty( Dali::Toolkit::TextLabel::Property::HORIZONTAL_ALIGNMENT, "CENTER" ); |
| 173 | label.SetProperty( Dali::Toolkit::TextLabel::Property::VERTICAL_ALIGNMENT, "CENTER" ); | 173 | label.SetProperty( Dali::Toolkit::TextLabel::Property::VERTICAL_ALIGNMENT, "CENTER" ); |
| 174 | label.SetResizePolicy( Dali::ResizePolicy::FILL_TO_PARENT, Dali::Dimension::HEIGHT ); | 174 | label.SetResizePolicy( Dali::ResizePolicy::FILL_TO_PARENT, Dali::Dimension::HEIGHT ); |