Exemplo n.º 1
0
 private void SetColor()
 {
     foreach (HitomiPanel hitomiPanel in MainPanel.Children)
     {
         HitomiPanel.ChangeColor(hitomiPanel);
     }
 }
Exemplo n.º 2
0
        public static void ChangeColor(HitomiPanel hpanel)
        {
            DockPanel panel = hpanel.panel as DockPanel;

            Border    border    = panel.Children[0] as Border;
            DockPanel InfoPanel = panel.Children[1] as DockPanel;

            StackPanel   bottomPanel  = InfoPanel.Children[1] as StackPanel;
            ScrollViewer scrollViewer = InfoPanel.Children[2] as ScrollViewer;

            Label nameLabel = InfoPanel.Children[0] as Label;

            Label sizeLabel = bottomPanel.Children[0] as Label;
            Label pageLabel = bottomPanel.Children[2] as Label;

            StackPanel tagPanel = scrollViewer.Content as StackPanel;

            panel.Background        = new SolidColorBrush(Global.background);
            border.Background       = new SolidColorBrush(Global.imagecolor);
            InfoPanel.Background    = new SolidColorBrush(Global.Menuground);
            bottomPanel.Background  = new SolidColorBrush(Global.Menuground);
            scrollViewer.Background = new SolidColorBrush(Global.Menuground);
            nameLabel.Foreground    = new SolidColorBrush(Global.fontscolor);
            sizeLabel.Foreground    = new SolidColorBrush(Global.fontscolor);
            pageLabel.Foreground    = new SolidColorBrush(Global.fontscolor);
            tagPanel.Background     = new SolidColorBrush(Global.Menuground);
        }