private void CreateButton(IoItem item) { var settings = SharedSettings.GetInstance(); var content = new WrapPanel(); content.Children.Add(new Image { Source = item.GetSmallIcon(), Height = 16, Width = 16, Margin = new Thickness(2) }); content.Children.Add(new TextBlock { Text = item.Name, Margin = new Thickness(2), TextTrimming = TextTrimming.CharacterEllipsis, Width = 70 }); var btnProgram = new Button { Content = content, Tag = item, HorizontalContentAlignment = HorizontalAlignment.Left, Foreground = settings.UiForeBrush, Background = settings.UiGradientBrushV, Margin = new Thickness(5), Width = 100, ToolTip = item.Name }; btnProgram.Click += BtnProgramClick; pnlPrograms.Children.Add(btnProgram); }
private void CreateButton(IoItem location) { var settings = SharedSettings.GetInstance(); var content = new WrapPanel(); content.Children.Add(new Image { Source = location.GetSmallIcon(), Height = 16, Width = 16, Margin = new Thickness(2) }); content.Children.Add(new TextBlock { Text = location.Name, Margin = new Thickness(2) }); var btnLocation = new Button { Content = content, Tag = location, HorizontalContentAlignment = HorizontalAlignment.Left, Foreground = settings.UiForeBrush, Background = settings.UiGradientBrushV, Margin = new Thickness(5) }; btnLocation.Click += btnLocation_Click; pnlButtons.Children.Add(btnLocation); }
public ShutdownMenu() { InitializeComponent(); settings = SharedSettings.GetInstance(); settings.ColorsUpdated += new System.EventHandler(SettingsColorsUpdated); ColorComponents(); }
public ColorPickerSelector() { InitializeComponent(); OldColor = Colors.Black; settings = SharedSettings.GetInstance(); settings.ColorsUpdated += SettingsColorsUpdated; ColorComponents(); }
public LocationMenu() { InitializeComponent(); LoadLocations(); var settings = SharedSettings.GetInstance(); icon.Foreground = settings.UiForeBrushGlassL; this.Loaded += LocationMenu_Loaded; }
private void LoadMenu() { var manager = new ProgramManager(); var items = manager.GetProgramMenu(); LoadMenuItems(items); var settings = SharedSettings.GetInstance(); icon.Foreground = settings.UiForeBrushGlassL; }
public SettingsControl() { InitializeComponent(); settings = SharedSettings.GetInstance(); settings.ColorsUpdated += SettingsColorsUpdated; ColorComponents(); LoadOptions(); slGlass.ValueChanged += slGlass_ValueChanged; cbHideTaskbar.Click += CbHideTaskbarClick; }
private void FillStart() { var settings = SharedSettings.GetInstance(); AllApps.Foreground = settings.UiForeBrush; Explore10.Foreground = settings.UiForeBrush; Background = settings.UiBrushGlass; ProgramList.Visibility = Visibility.Hidden; ProgramList.Height = SystemParameters.FullPrimaryScreenHeight - 210; ProgramList.VerticalAlignment = VerticalAlignment.Top; ProgramParent.Visibility = Visibility.Hidden; ProgramParent.Height = SystemParameters.FullPrimaryScreenHeight - 210; }
public WorkspaceSetter(TaskWindow taskWindow, MenuWindow menu, Desktop desktop) { this.taskWindow = taskWindow; this.menu = menu; this.desktop = desktop; settings = SharedSettings.GetInstance(); if (settings.TaskbarAlwaysVisible) { taskWindow.SizeChanged += TaskWindowSizeChanged; } menu.SizeChanged += TaskWindowSizeChanged; DrawWorkSpace(); }
public Battery() { InitializeComponent(); //inital text var settings = SharedSettings.GetInstance(); ucBattery.Foreground = settings.UiForeBrush; ucBattery.Text = "Battery Remaining: " + GetBatteryPercent() + "%"; //set up timer var timer = new Timer(60000); timer.Elapsed += Timer_Elapsed; timer.AutoReset = true; timer.Enabled = true; }
public Wifi() { InitializeComponent(); //inital text var settings = SharedSettings.GetInstance(); ucWifi.Foreground = settings.UiForeBrush; ucWifi.Text = "Wifi Signal: " + GetWifiSignal(); //set up timer var timer = new Timer(60000); timer.Elapsed += Timer_Elapsed; timer.AutoReset = true; timer.Enabled = true; }
public DesktopButton(IoItem desktopItem) { this.desktopItem = desktopItem; InitializeComponent(); Background = new ImageBrush(desktopItem.GetLargeIcon()) { Stretch = Stretch.None }; DisplayName = desktopItem.Name; settings = SharedSettings.GetInstance(); ColorComponents(); settings.ColorsUpdated += SettingsColorsUpdated; }
public Task(Window window) { InitializeComponent(); this.window = window; settings = SharedSettings.GetInstance(); Loaded += UpdateThumb; SizeChanged += UpdateThumb; SizeChanged += TaskSizeChanged; imgIcon16.Source = window.ProgramIcon; imgIcon32.Source = window.ProgramIcon; taskLabel.Text = window.Title; window.TitleChanged += WindowTitleChanged; SetColors(); settings.ColorsUpdated += SettingsColorsUpdated; }
void SlideMenuLoaded(object sender, RoutedEventArgs e) { settings = SharedSettings.GetInstance(); settings.ColorsUpdated += SettingsColorsUpdated; ColorComponents(); }