Beispiel #1
0
        private void ConfigThemeChanged_callback(object sender, SelectionChangedEventArgs args)
        {
            ComboBox _input = sender as ComboBox;

            Theme.EName _theme = (Theme.EName)_input.SelectedIndex;

            UpdateTheme(_theme);
        }
Beispiel #2
0
 public void UpdateTheme(Theme.EName _name)
 {
     StackPanelMain.Background = new SolidColorBrush(Theme.GetColorFromTheme(_name, Theme.EColorPalet.MainFront));
     textMain.Foreground       = new SolidColorBrush(Theme.GetColorFromTheme(_name, Theme.EColorPalet.Text1));
     textFromTo.Foreground     = new SolidColorBrush(Theme.GetColorFromTheme(_name, Theme.EColorPalet.Text5));
     Datefrom.Foreground       = new SolidColorBrush(Theme.GetColorFromTheme(_name, Theme.EColorPalet.Text4));
     Distance.Foreground       = new SolidColorBrush(Theme.GetColorFromTheme(_name, Theme.EColorPalet.Text4));
 }
Beispiel #3
0
        public TripDescUserControl(Page _parentPage, Boolean _unit, Theme.EName _theme)
        {
            this.InitializeComponent();
            _parent    = _parentPage;
            _pic       = new List <ImageSource>();
            _unitMiles = _unit;

            _timer          = new DispatcherTimer();
            _timer.Tick    += timer_Tick;
            _timer.Interval = TimeSpan.FromMilliseconds(500);

            UpdateTheme(_theme);
        }
Beispiel #4
0
        private void UpdateTheme(Theme.EName _name)
        {
//          bgViewHome.Background = new SolidColorBrush(Theme.GetColorFromTheme(_name, Theme.EColorPalet.MainBg));
            bgViewHome.Background  = Theme.GetPictureFromTheme(_name);
            bgHomePanel.Background = new SolidColorBrush(Theme.GetColorFromTheme(_name, Theme.EColorPalet.MainFront));
            pageTitle.Foreground   = new SolidColorBrush(Theme.GetColorFromTheme(_name, Theme.EColorPalet.MainFront));
            bgList.Color           = Theme.GetColorFromTheme(_name, Theme.EColorPalet.MainBgDegr);

            profileName.Foreground        = new SolidColorBrush(Theme.GetColorFromTheme(_name, Theme.EColorPalet.Text1));
            txtDistance.Foreground        = new SolidColorBrush(Theme.GetColorFromTheme(_name, Theme.EColorPalet.Text5));
            txtCountriesNumber.Foreground = new SolidColorBrush(Theme.GetColorFromTheme(_name, Theme.EColorPalet.Text5));

            txtImport.Foreground   = new SolidColorBrush(Theme.GetColorFromTheme(_name, Theme.EColorPalet.MainBgDegr));
            progressBar.Background = new SolidColorBrush(Theme.GetColorFromTheme(_name, Theme.EColorPalet.MainBgDegr));
            progressBar.Foreground = new SolidColorBrush(Theme.GetColorFromTheme(_name, Theme.EColorPalet.Text2));
            ringImport.Foreground  = new SolidColorBrush(Theme.GetColorFromTheme(_name, Theme.EColorPalet.MainBgDegr));

            foreach (TripDescUserControl _uc in _listTripDesc)
            {
                _uc.UpdateTheme(_name);
            }
        }
 public void UpdateComboBox(Theme.EName _value)
 {
     comboThemes.SelectedIndex = (int)_value;
 }
 public void UpdateTheme(Theme.EName _name)
 {
     StackPanelMain.Background = new SolidColorBrush(Theme.GetColorFromTheme(_name, Theme.EColorPalet.MainFront));
     NameDisp.Foreground       = new SolidColorBrush(Theme.GetColorFromTheme(_name, Theme.EColorPalet.Text5));
 }
 public AlbumDescUserControl(Theme.EName _theme, ViewMapTrip _p)
 {
     this.InitializeComponent();
     UpdateTheme(_theme);
     _parent = _p;
 }