示例#1
0
 private void CreateSettings()
 {
     Settings = new WPLockSettings();
 }
示例#2
0
        public void ApplySettings(ILockScreenSettings settings)
        {
            Settings = settings as WPLockSettings;
            _background.Image = Settings.Background;

            // Top Bar
            _topBar._fontColor = Color.FromArgb(Settings.TopBarFontColor);
            _topBar._batteryColor = Settings.TopBarColorBattery;
            if (Settings.TopBarWhiteIcon) { _topBar._typeColorIcon = "white"; } else { _topBar._typeColorIcon = "black"; }

            // Player
            _mediaPlayer._fontColor = Color.FromArgb(Settings.PlayerFontColor);
            if (Settings.PlayerWhiteIcon) { _mediaPlayer._typeColorIcon = "white"; } else { _mediaPlayer._typeColorIcon = "black"; }

            // Date Time
            _style.Foreground = Color.FromArgb(Settings.DateTimeFontColor);
            _lblClock.Style = _style;
            _lblClock.Update();

            // Appointment
            _appointment._fontColor = Color.FromArgb(Settings.AppointmentFontColor);
            if (Settings.AppointmentWhiteIcon) { _appointment._typeColorIcon = "white"; } else { _appointment._typeColorIcon = "black"; }
            //_appointment._liveHourAppointment
            //_appointment._onAppointmentShowTime

            // Status
            _statusPhone._fontColor = Color.FromArgb(Settings.StatusFontColor);
            if (Settings.StatusWhiteIcon) { _statusPhone._typeColorIcon = "white"; } else { _statusPhone._typeColorIcon = "black"; }

            _topBar.UpdateTheme();
            _mediaPlayer.UpdateTheme();
            _appointment.UpdateTheme();
            _statusPhone.UpdateTheme();
            UpdateScreen();
        }