StyleManager uses dali singleton service which is not initialized in PreLoad().
Previously in Preload(), ThemeManager got framework resource path via static constant in StyleManager,
which leaded to initialize StyleManager instance that is not valid in PreLoad().
So this patch moved framework resource path constant to the constant file.
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
//Show vertical shadow on the top (or bottom) of the scrollable when panning down (or up).
verticalTopShadowView = new View
{
- BackgroundImage = Tizen.NUI.StyleManager.FrameworkResourcePath + "nui_component_default_scroll_over_shooting_top.png",
+ BackgroundImage = Tizen.NUI.FrameworkInformation.ResourcePath + "nui_component_default_scroll_over_shooting_top.png",
Opacity = 1.0f,
SizeHeight = 0.0f,
PositionUsesPivotPoint = true,
};
verticalBottomShadowView = new View
{
- BackgroundImage = Tizen.NUI.StyleManager.FrameworkResourcePath + "nui_component_default_scroll_over_shooting_bottom.png",
+ BackgroundImage = Tizen.NUI.FrameworkInformation.ResourcePath + "nui_component_default_scroll_over_shooting_bottom.png",
Opacity = 1.0f,
SizeHeight = 0.0f,
PositionUsesPivotPoint = true,
IndicatorSize = new Size(10, 10);
IndicatorImageURL = new Selector<string>()
{
- Normal = Tizen.NUI.StyleManager.FrameworkResourcePath + "nui_component_default_pagination_normal_dot.png",
- Selected = Tizen.NUI.StyleManager.FrameworkResourcePath + "nui_component_default_pagination_focus_dot.png",
+ Normal = Tizen.NUI.FrameworkInformation.ResourcePath + "nui_component_default_pagination_normal_dot.png",
+ Selected = Tizen.NUI.FrameworkInformation.ResourcePath + "nui_component_default_pagination_focus_dot.png",
};
CenterIndicatorImageURL = new Selector<string>()
{
- Normal = Tizen.NUI.StyleManager.FrameworkResourcePath + "nui_wearable_circular_pagination_center_normal_dot.png",
- Selected = Tizen.NUI.StyleManager.FrameworkResourcePath + "nui_wearable_circular_pagination_center_focus_dot.png",
+ Normal = Tizen.NUI.FrameworkInformation.ResourcePath + "nui_wearable_circular_pagination_center_normal_dot.png",
+ Selected = Tizen.NUI.FrameworkInformation.ResourcePath + "nui_wearable_circular_pagination_center_focus_dot.png",
};
}
}
/// </summary>
NoThirdParty
}
+
+ /// <summary>
+ /// TODO This is to get TizenFX resource path. It needs to be fixed to use application framework API in the future.
+ /// Internal use only. Do not open this API.
+ /// </summary>
+ internal struct FrameworkInformation
+ {
+ public readonly static string ResourcePath = "/usr/share/dotnet.tizen/framework/res/";
+ }
}
private EventHandler<StyleChangedEventArgs> _styleManagerStyleChangedEventHandler;
private StyleChangedCallbackDelegate _styleManagerStyleChangedCallbackDelegate;
- /// <summary>
- /// Internal use only. Do not open this API.
- /// This is to get TizenFX resource path. It needs to be fixed to use application framework API in the future.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public readonly static string FrameworkResourcePath = "/usr/share/dotnet.tizen/framework/res/";
-
/// <summary>
/// Creates a StyleManager handle.<br />
/// This can be initialized with StyleManager::Get().<br />
foreach (var project in nuiThemeProjects)
{
- string path = StyleManager.FrameworkResourcePath + "/Theme/" + project + "_" + id + ".xaml";
+ string path = FrameworkInformation.ResourcePath + "/Theme/" + project + "_" + id + ".xaml";
if (!File.Exists(path))
{
/// <inheritdoc/>
[EditorBrowsable(EditorBrowsableState.Never)]
- public string ProvideValue(IServiceProvider serviceProvider) => StyleManager.FrameworkResourcePath + FilePath;
+ public string ProvideValue(IServiceProvider serviceProvider) => FrameworkInformation.ResourcePath + FilePath;
/// <inheritdoc/>
[EditorBrowsable(EditorBrowsableState.Never)]