// It is a C# version of res/Tizen.NUI.Components_Tizen.NUI.Theme.Common.xaml
internal partial class DefaultThemeCreator : IThemeCreator
{
+ /// <summary>
+ /// The base theme description.
+ /// </summary>
[SuppressMessage("Microsoft.Reliability", "CA2000: Dispose objects before losing scope", Justification = "The responsibility to dispose the object is transferred to the theme object.")]
public Theme Create()
{
Version = Tizen.NUI.DefaultThemeCreator.DefaultVersion
};
+ // Button base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.Button", new ButtonStyle()
{
Size = new Size(339, 96),
},
Text = new TextLabelStyle()
{
- PixelSize = 32,
TextColor = Color.White,
}
});
+ // CheckBox base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.CheckBox", new ButtonStyle()
{
ItemSpacing = new Size2D(32, 32),
},
Text = new TextLabelStyle()
{
- PixelSize = 32,
TextColor = new Color("#001447")
}
});
+ // Popup base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.Popup", new PopupStyle()
{
Size = new Size(500, 280),
Buttons = new ButtonStyle()
{
Size = new Size(0, 80),
+ CornerRadius = 0,
BackgroundColor = new Selector<Color>()
{
Normal = new Color(1, 1, 1, 1),
}
});
+ // Progress base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.Progress", new ProgressStyle()
{
Size = new Size(200, 25),
IndeterminateImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_progress_indeterminate.png",
});
+ // RadioButton base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.RadioButton", new ButtonStyle()
{
ItemSpacing = new Size2D(32, 32),
},
Text = new TextLabelStyle()
{
- PixelSize = 32,
TextColor = new Color("#001447")
}
});
+ // Slider base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.Slider", new SliderStyle()
{
Size = new Size(200, 50),
},
});
+ // Switch base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.Switch", new SwitchStyle()
{
ItemSpacing = new Size2D(32, 32),
},
Text = new TextLabelStyle()
{
- PixelSize = 32,
TextColor = new Color("#001447")
}
});
+ // Loading base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.Loading", new LoadingStyle()
{
LoadingSize = new Size(100, 100),
});
+ // Pagination base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.Pagination", new PaginationStyle()
{
IndicatorImageUrl = new Selector<string>()
IndicatorSize = new Size(10, 10),
});
+ // Scrollbar base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.Scrollbar", new ScrollbarStyle()
{
TrackThickness = 12,
ThumbThickness = 12,
TrackColor = new Color(0f, 0f, 0f, 0f),
- ThumbColor = new Color("#0A0E4AFF"),
+ ThumbColor = new Color("#0A0E4A"),
TrackPadding = 4,
ThumbVerticalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_vbar.#.png",
ThumbHorizontalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_hbar.#.png",
});
+ // LinearLayouter base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.LinearLayouter", new ViewStyle()
{
Padding = new Extents(64, 64, 0, 0)
});
+ // GridLayouter base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.GridLayouter", new ViewStyle()
{
Padding = new Extents(0, 0, 0, 0),
});
+ // ItemsLayouter base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.ItemsLayouter", new ViewStyle()
{
Padding = new Extents(0, 0, 0, 0),
});
+ // RecyclerViewItem base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.RecyclerViewItem", new RecyclerViewItemStyle()
{
BackgroundColor = new Selector<Color>()
},
});
+ // DefaultLinearItem base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultLinearItem", new DefaultLinearItemStyle()
{
SizeHeight = 108,
PixelSize = 32,
Ellipsis = true,
FontFamily = "BreezeSans", //FXIME Font Weight is Light
- TextColor = new Color("#001447FF"),
+ TextColor = new Color("#001447"),
+ ThemeChangeSensitive = false
},
SubLabel = new TextLabelStyle()
{
PixelSize = 28,
Ellipsis = true,
FontFamily = "BreezeSans",
- TextColor = new Color("#001447FF"),
+ TextColor = new Color("#001447"),
+ ThemeChangeSensitive = false
},
Icon = new ViewStyle()
{
{
SizeHeight = 1,
Margin = new Extents(64, 64, 0, 0),
- BackgroundColor = new Color("#C3CAD2FF"),
+ BackgroundColor = new Color("#C3CAD2"),
},
});
+
+ // DefaultGridItem base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultGridItem", new DefaultGridItemStyle()
{
Padding = new Extents(0, 0, 0, 0),
SizeHeight = 60,
PixelSize = 24,
LineWrapMode = LineWrapMode.Character,
+ ThemeChangeSensitive = false
},
Badge = new ViewStyle()
{
},
});
+ // DefaultTitleItem base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultTitleItem", new DefaultTitleItemStyle()
{
SizeHeight = 60,
Margin = new Extents(0, 0, 0, 0),
BackgroundColor = new Selector<Color>()
{
- Normal = new Color("#EEEEF1FF"),
+ Normal = new Color("#EEEEF1"),
},
Label = new TextLabelStyle()
{
PixelSize = 28,
Ellipsis = true,
- TextColor = new Color("#001447FF"),
+ TextColor = new Color("#001447"),
+ ThemeChangeSensitive = false
},
Icon = new ViewStyle()
{
},
});
+ // ContentPage base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.ContentPage", new ViewStyle()
{
- BackgroundColor = new Color("#EEEFF1FF"),
+ BackgroundColor = new Color("#EEEFF1"),
});
+ // AppBar base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.AppBar", new AppBarStyle()
{
Size = new Size(-1, 120),
- BackgroundColor = new Color("#EEEFF1FF"),
+ BackgroundColor = new Color("#EEEFF1"),
BackButton = new ButtonStyle()
{
Size = new Size(48, 48),
ResourceUrl = FrameworkInformation.ResourcePath + "nui_component_default_back_button.png",
Color = new Selector<Color>()
{
- Normal = new Color("#0A0E4AFF"),
- Focused = new Color("#00338BFF"),
- Pressed = new Color("#1B69CAFF"),
- Disabled = new Color("#C3CAD2FF"),
+ Normal = new Color("#0A0E4A"),
+ Focused = new Color("#00338B"),
+ Pressed = new Color("#1B69CA"),
+ Disabled = new Color("#C3CAD2"),
},
},
+ ThemeChangeSensitive = false
},
TitleTextLabel = new TextLabelStyle()
{
VerticalAlignment = VerticalAlignment.Center,
TextColor = new Selector<Color>()
{
- Normal = new Color("#000C2BFF"),
- }
+ Normal = new Color("#000C2B"),
+ },
+ ThemeChangeSensitive = false
},
ActionView = new ViewStyle()
{
PixelSize = 26,
TextColor = new Selector<Color>()
{
- Normal = new Color("#0A0E4AFF"),
- Focused = new Color("#00338BFF"),
- Pressed = new Color("#1B69CAFF"),
- Disabled = new Color("#C3CAD2FF"),
+ Normal = new Color("#0A0E4A"),
+ Focused = new Color("#00338B"),
+ Pressed = new Color("#1B69CA"),
+ Disabled = new Color("#C3CAD2"),
},
},
Icon = new ImageViewStyle()
Size = new Size(-1, 48),
Color = new Selector<Color>()
{
- Normal = new Color("#0A0E4AFF"),
- Focused = new Color("#00338BFF"),
- Pressed = new Color("#1B69CAFF"),
- Disabled = new Color("#C3CAD2FF"),
+ Normal = new Color("#0A0E4A"),
+ Focused = new Color("#00338B"),
+ Pressed = new Color("#1B69CA"),
+ Disabled = new Color("#C3CAD2"),
},
},
+ ThemeChangeSensitive = false,
},
Padding = new Extents(64, 64, 0, 0),
NavigationPadding = new Extents(0, 24, 0, 0),
ActionCellPadding = new Size2D(40, 0),
});
+ // Picker base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.Picker", new PickerStyle()
{
Size = new Size(160, 339),
Size = new Size(0,72),
TextColor = new Selector<Color>()
{
- Normal = new Color("#000C2BFF"),
+ Normal = new Color("#000C2B"),
},
BackgroundColor = Color.White,
},
SizeHeight = 2.0f,
WidthResizePolicy = ResizePolicyType.FillToParent,
Position = new Position(0, 132),
- BackgroundColor = new Color("#0A0E4AFF"),
+ BackgroundColor = new Color("#0A0E4A"),
},
StartScrollOffset = new Size(0, 12),
});
+ // TabButton base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.TabButton", new TabButtonStyle()
{
Size = new Size(-1, 84),
Size = new Size(-2, -2),
TextColor = new Selector<Color>()
{
- Normal = new Color("#000C2BFF"),
- Selected = new Color("#000C2BFF"),
- Pressed = new Color("#1473E6FF"),
- Disabled = new Color("#C3CAD2FF"),
+ Normal = new Color("#000C2B"),
+ Selected = new Color("#000C2B"),
+ Pressed = new Color("#1473E6"),
+ Disabled = new Color("#C3CAD2"),
},
+ ThemeChangeSensitive = false,
},
Icon = new ImageViewStyle()
{
Size = new Size(48, 48),
Color = new Selector<Color>()
{
- Normal = new Color("#000C2BFF"),
- Selected = new Color("#000C2BFF"),
- Pressed = new Color("#1473E6FF"),
- Disabled = new Color("#C3CAD2FF"),
+ Normal = new Color("#000C2B"),
+ Selected = new Color("#000C2B"),
+ Pressed = new Color("#1473E6"),
+ Disabled = new Color("#C3CAD2"),
},
},
TopLine = new ViewStyle()
Size = new Size(-1, 1),
BackgroundColor = new Selector<Color>()
{
- Normal = new Color("#000C2BFF"),
- Selected = new Color("#000C2BFF"),
- Pressed = new Color("#1473E6FF"),
- Disabled = new Color("#C3CAD2FF"),
+ Normal = new Color("#000C2B"),
+ Selected = new Color("#000C2B"),
+ Pressed = new Color("#1473E6"),
+ Disabled = new Color("#C3CAD2"),
},
},
BottomLine = new ViewStyle()
BackgroundColor = new Selector<Color>()
{
Normal = Color.Transparent,
- Selected = new Color("#000C2BFF"),
- Pressed = new Color("#1473E6FF"),
+ Selected = new Color("#000C2B"),
+ Pressed = new Color("#1473E6"),
Disabled = Color.Transparent,
},
},
});
+ // NotificationToast base style
theme.AddStyleWithoutClone("NotificationToast", new TextLabelStyle()
{
- BackgroundImage = FrameworkInformation.ResourcePath + "IoT_Toast_1.png",
- BackgroundImageBorder = new Rectangle(28, 28, 28, 28),
+ BackgroundColor = new Color("#F2F7FF"),
+ CornerRadius = 20.0f,
+ BoxShadow = new Shadow(5.0f, new Color("#00000066"), new Vector2(2.0f, 2.0f)),
TextColor = new Color("#000C2B"),
PixelSize = 32,
WidthResizePolicy = ResizePolicyType.UseNaturalSize,
PositionY = 120,
});
+ // AlertDialog base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.AlertDialog", new AlertDialogStyle()
{
Size = new Size(-2, -2),
Padding = new Extents(80, 80, 0, 0),
- BackgroundImage = FrameworkInformation.ResourcePath + "nui_component_default_dialog_bg.#.png",
+ BackgroundColor = Color.White,
+ CornerRadius = 28.0f,
+ BoxShadow = new Shadow(2.0f, new Color("#00000029"), new Vector2(2.0f, 2.0f)),
TitleTextLabel = new TextLabelStyle()
{
- Size = new Size(1024, -2),
+ Size = new Size(600, -2),
Margin = new Extents(0, 0, 40, 40),
PixelSize = 40,
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
- TextColor = new Selector<Color>()
- {
- Normal = new Color("#000C2BFF"),
- },
+ TextColor = new Color("#000C2B"),
+ ThemeChangeSensitive = false,
},
MessageTextLabel = new TextLabelStyle()
{
- Size = new Size(1024, -2),
+ Size = new Size(600, -2),
Margin = new Extents(0, 0, 0, 64),
PixelSize = 32,
MultiLine = true,
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
- TextColor = new Selector<Color>()
- {
- Normal = new Color("#000C2BFF"),
- },
+ TextColor = new Color("#000C2B"),
+ ThemeChangeSensitive = false,
},
ActionContent = new ViewStyle()
{
- Size = new Size(1024, -2),
+ Size = new Size(600, -2),
},
});
+ // TimePicker base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.TimePicker", new TimePickerStyle()
{
CellPadding = new Size(50, 339),
VerticalAlignment = VerticalAlignment.Center,
HorizontalAlignment = HorizontalAlignment.Center,
Size = new Size(0,72),
- TextColor = new Selector<Color>()
- {
- Normal = new Color("#000C2BFF"),
- },
+ TextColor = new Color("#000C2B"),
BackgroundColor = Color.White,
+ ThemeChangeSensitive = false
},
Divider = new ViewStyle()
{
SizeHeight = 2.0f,
WidthResizePolicy = ResizePolicyType.FillToParent,
Position = new Position(0, 132),
- BackgroundColor = new Color("#0A0E4AFF"),
+ BackgroundColor = new Color("#0A0E4A"),
},
StartScrollOffset = new Size2D(0, 12),
}
});
+ // DatePicker base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.DatePicker", new DatePickerStyle()
{
CellPadding = new Size(50, 339),
VerticalAlignment = VerticalAlignment.Center,
HorizontalAlignment = HorizontalAlignment.Center,
Size = new Size(0,72),
- TextColor = new Selector<Color>()
- {
- Normal = new Color("#000C2BFF"),
- },
+ TextColor = new Color("#000C2B"),
BackgroundColor = Color.White,
+ ThemeChangeSensitive = false
},
Divider = new ViewStyle()
{
SizeHeight = 2.0f,
WidthResizePolicy = ResizePolicyType.FillToParent,
Position = new Position(0, 132),
- BackgroundColor = new Color("#0A0E4AFF"),
+ BackgroundColor = new Color("#0A0E4A"),
},
StartScrollOffset = new Size2D(0, 12),
}
});
+ // MenuItem base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.MenuItem", new ButtonStyle()
{
Size = new Size(480, -2),
VerticalAlignment = VerticalAlignment.Center,
TextColor = new Selector<Color>()
{
- Normal = new Color("#001447FF"),
- Focused = new Color("#00338BFF"),
- Pressed = new Color("#1B69CAFF"),
- Disabled = new Color("#C3CAD2FF"),
+ Normal = new Color("#001447"),
+ Focused = new Color("#00338B"),
+ Pressed = new Color("#1B69CA"),
+ Disabled = new Color("#C3CAD2"),
},
+ ThemeChangeSensitive = false
},
Icon = new ImageViewStyle()
{
Size = new Size(-2, 48),
Color = new Selector<Color>()
{
- Normal = new Color("#001447FF"),
- Focused = new Color("#00338BFF"),
- Pressed = new Color("#1B69CAFF"),
- Disabled = new Color("#C3CAD2FF"),
+ Normal = new Color("#001447"),
+ Focused = new Color("#00338B"),
+ Pressed = new Color("#1B69CA"),
+ Disabled = new Color("#C3CAD2"),
},
},
});
}
}
-#endif
+#endif // !PROFILE_WEARABLE