Exemplo n.º 1
0
        // Token: 0x060014B8 RID: 5304 RVA: 0x0007E554 File Offset: 0x0007C754
        public static void RenderThemePreviewUrl(TextWriter writer, string themeStorageId)
        {
            if (writer == null)
            {
                throw new ArgumentNullException("writer");
            }
            bool flag            = false;
            uint idFromStorageId = ThemeManager.GetIdFromStorageId(themeStorageId);

            if (idFromStorageId != 4294967295U)
            {
                Theme theme = ThemeManager.themes[(int)((UIntPtr)idFromStorageId)];
                flag = theme.IsFileInTheme(23);
                if (flag)
                {
                    ThemeManager.RenderThemeFilePath(writer, ThemeManager.GetIdFromStorageId(themeStorageId), 23);
                    writer.Write(ThemeFileList.GetNameFromId(23));
                }
            }
            if (!flag)
            {
                ThemeManager.RenderThemeFilePath(writer, ThemeManager.baseTheme.Id, 22);
                writer.Write(ThemeFileList.GetNameFromId(22));
            }
        }
Exemplo n.º 2
0
 // Token: 0x060000A7 RID: 167 RVA: 0x00004A9F File Offset: 0x00002C9F
 public static void RenderThemeFileUrl(TextWriter writer, int themeFileIndex, bool isBasicExperience, bool useCDN)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     ThemeManager.RenderThemeFilePath(writer, themeFileIndex, isBasicExperience, useCDN);
     writer.Write(ThemeFileList.GetNameFromId(themeFileIndex));
 }
Exemplo n.º 3
0
 // Token: 0x060014B6 RID: 5302 RVA: 0x0007E4A8 File Offset: 0x0007C6A8
 private static bool RenderThemeFilePath(TextWriter writer, uint themeId, int themeFileIndex)
 {
     return(ThemeManager.RenderThemeFilePath(writer, themeId, themeFileIndex, false, true));
 }