Beispiel #1
0
        //private static LowLevelKeyboardListener keyboardListener; // temporarily removed due to stuck key issue, commented out to prevent warnings

        public MenuBar(ICairoApplication cairoApplication, ShellManager shellManager, WindowManager windowManager, AppGrabberService appGrabber, IApplicationUpdateService applicationUpdateService, ISettingsUIService settingsUiService, AppBarScreen screen, AppBarEdge edge) : base(cairoApplication, shellManager, windowManager, screen, edge, 23)
        {
            _appGrabber = appGrabber;
            _applicationUpdateService = applicationUpdateService;
            _settingsUiService        = settingsUiService;

            object menuBarWindowAllowsTransparencyResource = CairoApplication.Current.Resources["MenuBarWindowAllowsTransparency"];

            if (menuBarWindowAllowsTransparencyResource is bool resourceValue)
            {
                AllowsTransparency = resourceValue;
            }

            InitializeComponent();

            RequiresScreenEdge = true;

            SetPosition();

            setupChildren();

            setupMenu();

            setupCairoMenu();

            setupPlacesMenu();

            Settings.Instance.PropertyChanged += Settings_PropertyChanged;
        }
Beispiel #2
0
        internal SettingsUI(ICairoApplication cairoApplication, SettingsUIService uiService, ShellManagerService shellManagerService, IApplicationUpdateService applicationUpdateService, AppGrabberService appGrabber, ThemeService themeService)
        {
            InitializeComponent();

            _appGrabber = appGrabber;
            _applicationUpdateService = applicationUpdateService;
            _cairoApplication         = cairoApplication;
            _shellManager             = shellManagerService.ShellManager;
            _themeService             = themeService;
            _uiService = uiService;

            loadThemes();
            loadLanguages();
            loadRadioGroups();
            loadCategories();
            loadDesktopBackgroundSettings();
            loadHotKeys();
            loadLoggingLevels();
            loadNotficationSettings();
            loadVersionDependentSettings();

            checkUpdateConfig();
            checkTrayStatus();
            checkRunAtLogOn();
            checkIfCanHibernate();
        }
Beispiel #3
0
        public Taskbar(ICairoApplication cairoApplication, ShellManager shellManager, WindowManager windowManager, DesktopManager desktopManager, AppGrabberService appGrabber, AppBarScreen screen, AppBarEdge edge) : base(cairoApplication, shellManager, windowManager, screen, edge, 0)
        {
            object taskBarWindowAllowsTransparencyResource = CairoApplication.Current.Resources["TaskBarWindowAllowsTransparency"];

            if (taskBarWindowAllowsTransparencyResource is bool resourceValue)
            {
                AllowsTransparency = resourceValue;
            }

            InitializeComponent();
            _appGrabber     = appGrabber;
            _desktopManager = desktopManager;
            _shellManager   = shellManager;

            if (!Screen.Primary && !Settings.Instance.EnableMenuBarMultiMon)
            {
                ProcessScreenChanges = true;
            }
            else
            {
                ProcessScreenChanges = false;
            }

            setupTaskbar();
            setupTaskbarAppearance();
        }
        public MenuBarWindowService(ICairoApplication cairoApplication, ShellManagerService shellManagerService, WindowManager windowManager, AppGrabberService appGrabber, IApplicationUpdateService updateService, ISettingsUIService settingsUiService) : base(cairoApplication, shellManagerService, windowManager)
        {
            _appGrabber        = appGrabber;
            _settingsUiService = settingsUiService;
            _updateService     = updateService;

            EnableMultiMon = Settings.Instance.EnableMenuBarMultiMon;
            EnableService  = Settings.Instance.EnableMenuBar;
        }
 public SettingsUIService(ICairoApplication cairoApplication, AppGrabberService appGrabber, IApplicationUpdateService updateService,
                          ShellManagerService shellManager, ThemeService themeService)
 {
     _appGrabber       = appGrabber;
     _cairoApplication = cairoApplication;
     _shellManager     = shellManager;
     _themeService     = themeService;
     _updateService    = updateService;
 }
Beispiel #6
0
        public Welcome(ICairoApplication cairoApplication, AppGrabberService appGrabber)
        {
            _appGrabber       = appGrabber;
            _cairoApplication = cairoApplication;

            InitializeComponent();

            SetSizeAndLocation();

            LoadLanguages();
        }
        public TaskbarWindowService(ICairoApplication cairoApplication, ShellManagerService shellManagerService, WindowManager windowManager, DesktopManager desktopManager, AppGrabberService appGrabber) : base(cairoApplication, shellManagerService, windowManager)
        {
            _appGrabber     = appGrabber;
            _desktopManager = desktopManager;

            EnableMultiMon = Settings.Instance.EnableTaskbarMultiMon;
            EnableService  = Settings.Instance.EnableTaskbar;

            if (EnableService)
            {
                _shellManager.ExplorerHelper.HideExplorerTaskbar = true;
                _shellManager.AppBarManager.AppBarEvent         += AppBarEvent;
            }
        }
Beispiel #8
0
        public FirstRunService(ICairoApplication cairoApplication, AppGrabberService appGrabber, ILogger <FirstRunService> logger, IOptionsMonitor <CommandLineOptions> options)
        {
            _appGrabber       = appGrabber;
            _cairoApplication = cairoApplication;
            _logger           = logger;

            try
            {
                _forceTour = options.CurrentValue.Tour;
            }
            catch (Exception e)
            {
                _logger.LogError($"Unable to read tour command line option: {e.Message}");
            }

            ServiceStartTask = new Task(FirstRun);
        }
Beispiel #9
0
        public Taskbar(ICairoApplication cairoApplication, ShellManager shellManager, WindowManager windowManager, DesktopManager desktopManager, AppGrabberService appGrabber, AppBarScreen screen, AppBarEdge edge) : base(cairoApplication, shellManager, windowManager, screen, edge, 0)
        {
            InitializeComponent();
            _appGrabber     = appGrabber;
            _desktopManager = desktopManager;
            _shellManager   = shellManager;

            if (!Screen.Primary && !Settings.Instance.EnableMenuBarMultiMon)
            {
                ProcessScreenChanges = true;
            }
            else
            {
                ProcessScreenChanges = false;
            }

            setupTaskbar();
            setupTaskbarAppearance();
        }
Beispiel #10
0
        //private static LowLevelKeyboardListener keyboardListener; // temporarily removed due to stuck key issue, commented out to prevent warnings

        public MenuBar(ICairoApplication cairoApplication, ShellManager shellManager, WindowManager windowManager, AppGrabberService appGrabber, IApplicationUpdateService applicationUpdateService, ISettingsUIService settingsUiService, AppBarScreen screen, AppBarEdge edge) : base(cairoApplication, shellManager, windowManager, screen, edge, 23)
        {
            _appGrabber = appGrabber;
            _applicationUpdateService = applicationUpdateService;
            _settingsUiService        = settingsUiService;

            InitializeComponent();

            RequiresScreenEdge = true;

            SetPosition();

            setupChildren();

            setupMenu();

            setupCairoMenu();

            setupPlacesMenu();

            Settings.Instance.PropertyChanged += Settings_PropertyChanged;
        }