summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShivam Varshney/Core S/W Group /SRI-Delhi/Engineer/Samsung Electronics <shivam.v2@samsung.com>2022-10-17 16:53:45 +0530
committerShivam Varshney/Core S/W Group /SRI-Delhi/Engineer/Samsung Electronics <shivam.v2@samsung.com>2022-10-17 16:53:45 +0530
commit23efb792f3fbf00721bc7cc507077aba20ae1690 (patch)
treed66a67594777a64169bf7e77d419372a3bbea46b
parent0479a372712ae826e9e0ededd7e487043ae74d75 (diff)
downloadsetting-wallpaper-23efb792f3fbf00721bc7cc507077aba20ae1690.tar.gz
setting-wallpaper-23efb792f3fbf00721bc7cc507077aba20ae1690.tar.bz2
setting-wallpaper-23efb792f3fbf00721bc7cc507077aba20ae1690.zip
Updated the backButton UI.
Change-Id: I82d281b28d10ec948afc310b855ffb42cbd1f2a3 Signed-off-by: Shivam Varshney/Core S/W Group /SRI-Delhi/Engineer/Samsung Electronics <shivam.v2@samsung.com>
-rw-r--r--Settings/SettingWallpaper/ViewManager.cs17
-rw-r--r--Settings/SettingWallpaper/res/images/dark/back.pngbin200 -> 806 bytes
-rw-r--r--Settings/SettingWallpaper/res/images/dark/back_pressed.pngbin0 -> 740 bytes
-rw-r--r--Settings/SettingWallpaper/res/images/light/back.pngbin355 -> 687 bytes
-rw-r--r--Settings/SettingWallpaper/res/images/light/back_pressed.pngbin0 -> 708 bytes
-rw-r--r--Settings/SettingWallpaper/res/resx/LanguageResources.Designer.cs2
-rw-r--r--Settings/SettingWallpaper/res/resx/LanguageResources.resx2
-rw-r--r--packaging/org.tizen.cssetting-wallpaper-1.0.0.tpkbin91282 -> 94201 bytes
8 files changed, 16 insertions, 5 deletions
diff --git a/Settings/SettingWallpaper/ViewManager.cs b/Settings/SettingWallpaper/ViewManager.cs
index ad7a560..a3a167b 100644
--- a/Settings/SettingWallpaper/ViewManager.cs
+++ b/Settings/SettingWallpaper/ViewManager.cs
@@ -113,15 +113,24 @@ namespace SettingWallpaper
},
};
- AppBarStyle appBarStyle = (AppBarStyle)ThemeManager.GetStyle("Tizen.NUI.Components.AppBar");
- Button navigationContent = new Button(appBarStyle.BackButton);
+ StringSelector iconUrlSelector = new StringSelector()
+ {
+ Normal = Resources.GetLightImagePath() + "back.png",
+ Pressed = Resources.GetLightImagePath() + "back_pressed.png",
+ };
+ Button navigationContent = new Button()
+ {
+ Size2D = new Size2D(48, 48).SpToPx(),
+ IconURLSelector = iconUrlSelector,
+ BackgroundColor = Color.Transparent,
+ };
+ navigationContent.Icon.Size2D = new Size2D(48, 48).SpToPx();
navigationContent.Clicked += (object source, ClickedEventArgs e) =>
{
CloseSettingWallpaper();
};
appBar.NavigationContent = navigationContent;
RelativeLayout.SetVerticalAlignment(appBar.NavigationContent, RelativeLayout.Alignment.Center);
- appBarStyle.Dispose();
TextLabel titleContent = new TextLabel(res.resx.LanguageResources.Title)
{
@@ -130,11 +139,13 @@ namespace SettingWallpaper
FontFamily = "BreezeSans",
VerticalAlignment = VerticalAlignment.Center,
FontStyle = Resources.FontStyleAllNormal,
+ Margin = new Extents(16, 0, 0, 0).SpToPx(),
};
appBar.TitleContent = titleContent;
RelativeLayout.SetLeftTarget(appBar.TitleContent, appBar.NavigationContent);
RelativeLayout.SetLeftRelativeOffset(appBar.TitleContent, 1.0f);
RelativeLayout.SetVerticalAlignment(appBar.TitleContent, RelativeLayout.Alignment.Center);
+ RelativeLayout.SetFillHorizontal(appBar.TitleContent, true);
Button actionContent = new Button()
{
diff --git a/Settings/SettingWallpaper/res/images/dark/back.png b/Settings/SettingWallpaper/res/images/dark/back.png
index e638592..5c170ad 100644
--- a/Settings/SettingWallpaper/res/images/dark/back.png
+++ b/Settings/SettingWallpaper/res/images/dark/back.png
Binary files differ
diff --git a/Settings/SettingWallpaper/res/images/dark/back_pressed.png b/Settings/SettingWallpaper/res/images/dark/back_pressed.png
new file mode 100644
index 0000000..2bf6f97
--- /dev/null
+++ b/Settings/SettingWallpaper/res/images/dark/back_pressed.png
Binary files differ
diff --git a/Settings/SettingWallpaper/res/images/light/back.png b/Settings/SettingWallpaper/res/images/light/back.png
index e008b84..582e745 100644
--- a/Settings/SettingWallpaper/res/images/light/back.png
+++ b/Settings/SettingWallpaper/res/images/light/back.png
Binary files differ
diff --git a/Settings/SettingWallpaper/res/images/light/back_pressed.png b/Settings/SettingWallpaper/res/images/light/back_pressed.png
new file mode 100644
index 0000000..36aeff4
--- /dev/null
+++ b/Settings/SettingWallpaper/res/images/light/back_pressed.png
Binary files differ
diff --git a/Settings/SettingWallpaper/res/resx/LanguageResources.Designer.cs b/Settings/SettingWallpaper/res/resx/LanguageResources.Designer.cs
index e7ab42d..cf0342f 100644
--- a/Settings/SettingWallpaper/res/resx/LanguageResources.Designer.cs
+++ b/Settings/SettingWallpaper/res/resx/LanguageResources.Designer.cs
@@ -79,7 +79,7 @@ namespace SettingWallpaper.res.resx {
}
/// <summary>
- /// Looks up a localized string similar to Wallpaper.
+ /// Looks up a localized string similar to Wallpapers.
/// </summary>
public static string Title {
get {
diff --git a/Settings/SettingWallpaper/res/resx/LanguageResources.resx b/Settings/SettingWallpaper/res/resx/LanguageResources.resx
index 5bd71f2..68e287a 100644
--- a/Settings/SettingWallpaper/res/resx/LanguageResources.resx
+++ b/Settings/SettingWallpaper/res/resx/LanguageResources.resx
@@ -124,6 +124,6 @@
<value>Save</value>
</data>
<data name="Title" xml:space="preserve">
- <value>Wallpaper</value>
+ <value>Wallpapers</value>
</data>
</root> \ No newline at end of file
diff --git a/packaging/org.tizen.cssetting-wallpaper-1.0.0.tpk b/packaging/org.tizen.cssetting-wallpaper-1.0.0.tpk
index fd4f103..fd1a26c 100644
--- a/packaging/org.tizen.cssetting-wallpaper-1.0.0.tpk
+++ b/packaging/org.tizen.cssetting-wallpaper-1.0.0.tpk
Binary files differ