Example #1
0
        private void ViewShades(ThemeTextBlock ThemeBlock)
        {
            List <ThemeTextBlock> ShadeBlocks = new List <ThemeTextBlock>();

            for (int j = 1; j < 10; j++)
            {
                ThemeTextBlock Block = new ThemeTextBlock(ThemeBlock.FGName, ThemeBlock.BGName, ThemeBlock.ColorSet);
                Block.Shades(j * 10);
                ShadeBlocks.Add(Block);

                if (4 < j)
                {
                    ThemeTextBlock BlockR = new ThemeTextBlock("RelColorShades", ThemeBlock.BGName, ThemeBlock.ColorSet);
                    BlockR.Shades(j * 10);
                    ShadeBlocks.Add(BlockR);
                }
            }

            ShadesView.ItemsSource = ShadeBlocks;
        }
Example #2
0
        private void ViewShades( ThemeTextBlock ThemeBlock )
        {
            List<ThemeTextBlock> ShadeBlocks = new List<ThemeTextBlock>();

            for( int j = 1; j < 10; j ++ )
            {
                ThemeTextBlock Block = new ThemeTextBlock(
                    ThemeBlock.FGName, ThemeBlock.BGName, ThemeBlock.ColorSet
                );
                Block.Shades( j * 10 );
                ShadeBlocks.Add( Block );

                if ( 4 < j )
                {
                    ThemeTextBlock BlockR = new ThemeTextBlock(
                        "APPEARENCE_THEME_RELATIVE_SHADES_COLOR", ThemeBlock.BGName, ThemeBlock.ColorSet
                    );
                    BlockR.Shades( j * 10 );
                    ShadeBlocks.Add( BlockR );
                }
            }

            ShadesView.ItemsSource = ShadeBlocks;
        }