Merge pull request #2342 from crazyserver/MOBILE-3363

Mobile 3363
main
Juan Leyva 2020-04-27 17:43:24 +02:00 committed by GitHub
commit 7385cf9dbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 10 deletions

View File

@ -666,11 +666,12 @@ ion-app.app-root {
overflow: auto;
}
.action-sheet-wrapper {
ion-action-sheet .action-sheet-wrapper .action-sheet-container {
.action-sheet-button.action-sheet-cancel {
color: $core-action-sheet-cancel-color;
@include darkmode() {
color: $core-dark-action-sheet-cancel-color;
background-color: $black;
}
}
.action-sheet-selected {

View File

@ -30,6 +30,12 @@ ion-app.app-root page-core-login-site {
border-color: $core-dark-login-box-background-border;
color: $core-dark-login-box-text-color;
}
.item {
@include darkmode() {
background: $core-dark-login-box-background-color;
}
}
}
.core-sitename, .core-siteurl {

View File

@ -14,7 +14,6 @@
import { Component, ViewChild } from '@angular/core';
import { IonicPage, Segment } from 'ionic-angular';
import { CoreAppProvider } from '@providers/app';
import { CoreConstants } from '@core/constants';
import { CoreConfigProvider } from '@providers/config';
import { CoreFileProvider } from '@providers/file';
@ -49,10 +48,14 @@ export class CoreSettingsGeneralPage {
selectedScheme: string;
colorSchemeDisabled: boolean;
constructor(private appProvider: CoreAppProvider, private configProvider: CoreConfigProvider, fileProvider: CoreFileProvider,
private eventsProvider: CoreEventsProvider, private langProvider: CoreLangProvider,
private domUtils: CoreDomUtilsProvider, private pushNotificationsProvider: CorePushNotificationsProvider,
localNotificationsProvider: CoreLocalNotificationsProvider, private settingsHelper: CoreSettingsHelper) {
constructor(protected configProvider: CoreConfigProvider,
fileProvider: CoreFileProvider,
protected eventsProvider: CoreEventsProvider,
protected langProvider: CoreLangProvider,
protected domUtils: CoreDomUtilsProvider,
protected pushNotificationsProvider: CorePushNotificationsProvider,
localNotificationsProvider: CoreLocalNotificationsProvider,
protected settingsHelper: CoreSettingsHelper) {
// Get the supported languages.
const languages = CoreConfigConstants.languages;
@ -72,9 +75,8 @@ export class CoreSettingsGeneralPage {
} else {
let defaultColorScheme = 'light';
// Auto is not working on iOS right now until we update Webkit.
if (!this.appProvider.isIOS() && (window.matchMedia('(prefers-color-scheme: dark)').matches ||
window.matchMedia('(prefers-color-scheme: light)').matches)) {
if (window.matchMedia('(prefers-color-scheme: dark)').matches ||
window.matchMedia('(prefers-color-scheme: light)').matches) {
this.colorSchemes.push('auto');
defaultColorScheme = 'auto';
}

View File

@ -23,6 +23,7 @@ ion-app.app-root {
&.action-sheet-selected {
color: $core-color;
background-color: $black;
}
&.activated {
background-color: $black;

View File

@ -90,7 +90,7 @@ $inverted-contrast: $primary !default;
$primary-dark: lighten($primary, 10%) !default;
$secondary-dark: mix($secondary, white, 20%) !default;
$danger-dark: mix($danger, white, 20%) !default;
$danger-dark: mix($danger, white, 80%) !default;
$warning-dark: mix($warning, white, 20%) !default;
$success-dark: mix($success, white, 20%) !default;
$info-dark: mix($info, white, 20%) !default;