Exemplo n.º 1
0
        //---------------------------------------------------------------------
        // Helpers
        //---------------------------------------------------------------------

        private static void Colorize(FolderColorName color, RainbowFolder folder)
        {
            var icons = FolderColorsStorage.Instance.GetIconsByColor(color);

            folder.SmallIcon = icons.SmallIcon;
            folder.LargeIcon = icons.LargeIcon;
        }
Exemplo n.º 2
0
        //---------------------------------------------------------------------
        // Public
        //---------------------------------------------------------------------

        public FolderIconPair GetIconsByColor(FolderColorName color)
        {
            var colorFolder = ColorFolderIcons.Single(x => x.Color == color);

            return(new FolderIconPair {
                SmallIcon = colorFolder.SmallIcon, LargeIcon = colorFolder.LargeIcon
            });
        }
Exemplo n.º 3
0
        //---------------------------------------------------------------------
        // Helpers
        //---------------------------------------------------------------------

        private static void Colorize(FolderColorName color, RainbowFolder folder)
        {
            FolderIconPair icons = FolderColorsStorage.Instance.GetIconsByColor(color);

            folder.SmallIcon    = icons.SmallIcon;
            folder.LargeIcon    = icons.LargeIcon;
            folder.IsIconCustom = false;
        }
        //---------------------------------------------------------------------
        // Helpers
        //---------------------------------------------------------------------

        private static void Colorize(FolderColorName color)
        {
            var icons = FolderColorsStorage.Instance.GetIconsByColor(color);

            ChangeSelectedFoldersIcons(icons);
        }
 //---------------------------------------------------------------------
 // Public
 //---------------------------------------------------------------------
 public FolderIconPair GetIconsByColor(FolderColorName color)
 {
     var colorFolder = ColorFolderIcons.Single(x => x.Color == color);
     return new FolderIconPair { SmallIcon = colorFolder.SmallIcon, LargeIcon = colorFolder.LargeIcon };
 }
        //---------------------------------------------------------------------
        // Helpers
        //---------------------------------------------------------------------

        private static void Colorize(FolderColorName color, RainbowFolder folder)
        {
            folder.Background         = FolderColorsStorage.Instance.GetBackgroundByColor(color);
            folder.IsBackgroundCustom = false;
        }
        private static void AssignBackground(FolderColorName color)
        {
            var background = FolderColorsStorage.Instance.GetBackgroundByColor(color);

            ChangeSelectedFoldersBackground(background);
        }
Exemplo n.º 8
0
        public Texture2D GetBackgroundByColor(FolderColorName color)
        {
            var colorFolder = ColorFolderIcons.Single(x => x.Color == color);

            return(colorFolder.Background);
        }
 //---------------------------------------------------------------------
 // Helpers
 //---------------------------------------------------------------------
 private static void Colorize(FolderColorName color, RainbowFolder folder)
 {
     var icons = FolderColorsStorage.Instance.GetIconsByColor(color);
     folder.SmallIcon = icons.SmallIcon;
     folder.LargeIcon = icons.LargeIcon;
 }