예제 #1
0
        public void ThemeManagerApplyExternalPlatformTheme()
        {
            tlog.Debug(tag, $"ThemeManagerApplyExternalPlatformTheme START");

            var       theme = new Theme(path);
            ViewStyle style = new ViewStyle()
            {
                Color = Color.Cyan,
            };

            theme.AddStyle("style", style);

            try
            {
                ThemeManager.ApplyExternalPlatformTheme(theme.Id, theme.Version);
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }

            tlog.Debug(tag, $"ThemeManagerApplyExternalPlatformTheme END (OK)");
        }