mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Dark theme base
This commit is contained in:
@@ -15692,6 +15692,11 @@ speechSynthesis.getVoices();
|
|||||||
};
|
};
|
||||||
|
|
||||||
$app.methods.changeThemeMode = async function () {
|
$app.methods.changeThemeMode = async function () {
|
||||||
|
if (
|
||||||
|
document.contains(document.getElementById('app-theme-dark-style'))
|
||||||
|
) {
|
||||||
|
document.getElementById('app-theme-dark-style').remove();
|
||||||
|
}
|
||||||
if (document.contains(document.getElementById('app-theme-style'))) {
|
if (document.contains(document.getElementById('app-theme-style'))) {
|
||||||
document.getElementById('app-theme-style').remove();
|
document.getElementById('app-theme-style').remove();
|
||||||
}
|
}
|
||||||
@@ -15704,7 +15709,11 @@ speechSynthesis.getVoices();
|
|||||||
this.isDarkMode = false;
|
this.isDarkMode = false;
|
||||||
break;
|
break;
|
||||||
case 'dark':
|
case 'dark':
|
||||||
$appThemeStyle.href = 'theme.dark.css';
|
$appThemeStyle.href = '';
|
||||||
|
this.isDarkMode = true;
|
||||||
|
break;
|
||||||
|
case 'darkvanillaold':
|
||||||
|
$appThemeStyle.href = 'theme.darkvanillaold.css';
|
||||||
this.isDarkMode = true;
|
this.isDarkMode = true;
|
||||||
break;
|
break;
|
||||||
case 'darkvanilla':
|
case 'darkvanilla':
|
||||||
@@ -15720,21 +15729,22 @@ speechSynthesis.getVoices();
|
|||||||
this.isDarkMode = true;
|
this.isDarkMode = true;
|
||||||
break;
|
break;
|
||||||
case 'system':
|
case 'system':
|
||||||
if (this.systemIsDarkMode()) {
|
this.isDarkMode = this.systemIsDarkMode();
|
||||||
$appThemeStyle.href = 'theme.dark.css';
|
|
||||||
this.isDarkMode = true;
|
|
||||||
} else {
|
|
||||||
$appThemeStyle.href = '';
|
|
||||||
this.isDarkMode = false;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (this.isDarkMode) {
|
if (this.isDarkMode) {
|
||||||
AppApi.ChangeTheme(1);
|
AppApi.ChangeTheme(1);
|
||||||
|
var $appThemeDarkStyle = document.createElement('link');
|
||||||
|
$appThemeDarkStyle.setAttribute('id', 'app-theme-dark-style');
|
||||||
|
$appThemeDarkStyle.rel = 'stylesheet';
|
||||||
|
$appThemeDarkStyle.href = 'theme.dark.css';
|
||||||
|
document.head.appendChild($appThemeDarkStyle);
|
||||||
} else {
|
} else {
|
||||||
AppApi.ChangeTheme(0);
|
AppApi.ChangeTheme(0);
|
||||||
}
|
}
|
||||||
document.head.appendChild($appThemeStyle);
|
if ($appThemeStyle.href) {
|
||||||
|
document.head.appendChild($appThemeStyle);
|
||||||
|
}
|
||||||
this.updateVRConfigVars();
|
this.updateVRConfigVars();
|
||||||
await this.updatetrustColor();
|
await this.updatetrustColor();
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -971,13 +971,13 @@ html
|
|||||||
.group-header(style="flex:1")
|
.group-header(style="flex:1")
|
||||||
span(v-if="groupDialog.ref.ownerId === API.currentUser.id" style="margin-right:5px") 👑
|
span(v-if="groupDialog.ref.ownerId === API.currentUser.id" style="margin-right:5px") 👑
|
||||||
span.dialog-title(v-text="groupDialog.ref.name" style="margin-right:5px")
|
span.dialog-title(v-text="groupDialog.ref.name" style="margin-right:5px")
|
||||||
span.group-discriminator(style="color:#909399;font-family:monospace;font-size:12px;margin-right:5px") {{ groupDialog.ref.shortCode }}.{{ groupDialog.ref.discriminator }}
|
span.group-discriminator.x-grey(style="font-family:monospace;font-size:12px;margin-right:5px") {{ groupDialog.ref.shortCode }}.{{ groupDialog.ref.discriminator }}
|
||||||
el-tooltip(v-for="item in groupDialog.ref.$languages" :key="item.key" placement="top")
|
el-tooltip(v-for="item in groupDialog.ref.$languages" :key="item.key" placement="top")
|
||||||
template(#content)
|
template(#content)
|
||||||
span {{ item.value }} ({{ item.key }})
|
span {{ item.value }} ({{ item.key }})
|
||||||
span.flags(:class="languageClass(item.key)" style="display:inline-block;margin-right:5px")
|
span.flags(:class="languageClass(item.key)" style="display:inline-block;margin-right:5px")
|
||||||
div(style="margin-top:5px")
|
div(style="margin-top:5px")
|
||||||
span.x-link(v-text="groupDialog.ownerDisplayName" @click="showUserDialog(groupDialog.ref.ownerId)" style="color:#909399;font-family:monospace")
|
span.x-link.x-grey(v-text="groupDialog.ownerDisplayName" @click="showUserDialog(groupDialog.ref.ownerId)" style="font-family:monospace")
|
||||||
.group-tags
|
.group-tags
|
||||||
el-tag(v-if="groupDialog.ref.isVerified" type="info" effect="plain" size="mini" style="margin-right:5px;margin-top:5px") {{ $t('dialog.group.tags.verified') }}
|
el-tag(v-if="groupDialog.ref.isVerified" type="info" effect="plain" size="mini" style="margin-right:5px;margin-top:5px") {{ $t('dialog.group.tags.verified') }}
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -18,7 +18,7 @@ module.exports = {
|
|||||||
dependOn: 'vendor'
|
dependOn: 'vendor'
|
||||||
},
|
},
|
||||||
'theme.dark': './src/theme.dark.scss',
|
'theme.dark': './src/theme.dark.scss',
|
||||||
'theme.darkvanillaold': './src/theme.darkvanilla.1.7.scss',
|
'theme.darkvanillaold': './src/theme.darkvanillaold.scss',
|
||||||
'theme.darkvanilla': './src/theme.darkvanilla.scss',
|
'theme.darkvanilla': './src/theme.darkvanilla.scss',
|
||||||
'theme.pink': './src/theme.pink.scss',
|
'theme.pink': './src/theme.pink.scss',
|
||||||
'theme.material3': './src/theme.material3.scss',
|
'theme.material3': './src/theme.material3.scss',
|
||||||
|
|||||||
Reference in New Issue
Block a user