From: Lukasz Stanislawski Date: Wed, 1 Jul 2020 14:44:58 +0000 (+0200) Subject: oobe: background update X-Git-Tag: accepted/tizen/unified/20220322.015113~73 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=143011fb00854ff3bcfc1c5d12ac93bac25e2288;p=profile%2Fiot%2Fapps%2Fdotnet%2Foobe-ui.git oobe: background update Replace svg background with png due to display issues. Center the background so in lower (720 hight) resolution top and bottom will hide. Change-Id: I61f51e6822da4f5c391bf74a310bfdac5eb50d12 --- diff --git a/Oobe/Oobe/Views/MainView.cs b/Oobe/Oobe/Views/MainView.cs index 771bb44..8e3aae6 100644 --- a/Oobe/Oobe/Views/MainView.cs +++ b/Oobe/Oobe/Views/MainView.cs @@ -35,10 +35,12 @@ namespace Oobe.Views public MainView(Window win) { - View backImage = new View{ - BackgroundImage = NUIApplication.Current.DirectoryInfo.Resource + "0_BG_dark.svg", - WidthResizePolicy = ResizePolicyType.FillToParent, - HeightResizePolicy = ResizePolicyType.FillToParent, + View backImage = new View + { + BackgroundImage = NUIApplication.Current.DirectoryInfo.Resource + "0_BG_dark.png", + PositionUsesPivotPoint = true, + PivotPoint = new Position(0.5f, 0.5f), + ParentOrigin = new Position(0.5f, 0.5f), }; Size2D stackSize = new Size2D( diff --git a/Oobe/Oobe/res/0_BG_dark.png b/Oobe/Oobe/res/0_BG_dark.png new file mode 100644 index 0000000..c50ca45 Binary files /dev/null and b/Oobe/Oobe/res/0_BG_dark.png differ diff --git a/Oobe/Oobe/res/0_BG_dark.svg b/Oobe/Oobe/res/0_BG_dark.svg deleted file mode 100644 index 8d19b00..0000000 --- a/Oobe/Oobe/res/0_BG_dark.svg +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -