mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2024-11-23 23:21:02 +01:00
perf: ♻️ Optimize dark mode
This commit is contained in:
parent
7c55e50edc
commit
2f2e1cfcd6
@ -56,7 +56,7 @@ export default () => {
|
||||
...(theme.isDark
|
||||
? {
|
||||
boxShadowColor: '#4C4D4F',
|
||||
boxBgColor: '#262727',
|
||||
boxBgColor: '#262626',
|
||||
inputColor: '#CFD3DC',
|
||||
inputBgColor: '#141414',
|
||||
textColor: '#CFD3DC',
|
||||
@ -65,8 +65,6 @@ export default () => {
|
||||
: {}),
|
||||
})
|
||||
|
||||
console.log('findInPage', findInPage)
|
||||
|
||||
return findInPage
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,7 @@ import path from 'node:path'
|
||||
import { createRequire } from 'node:module'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
|
||||
import { BrowserWindow, app, shell } from 'electron'
|
||||
import { BrowserWindow, app, nativeTheme, shell } from 'electron'
|
||||
import { electronApp, optimizer } from '@electron-toolkit/utils'
|
||||
import contextMenu from 'electron-context-menu'
|
||||
import remote from '@electron/remote/main'
|
||||
@ -89,7 +89,7 @@ function createWindow() {
|
||||
sandbox: false,
|
||||
spellcheck: false,
|
||||
},
|
||||
backgroundColor: 'white',
|
||||
backgroundColor: nativeTheme.shouldUseDarkColors ? 'black' : 'white',
|
||||
})
|
||||
|
||||
remote.enable(mainWindow.webContents)
|
||||
|
@ -4,7 +4,7 @@
|
||||
class=""
|
||||
circle
|
||||
size="small"
|
||||
:title="$t('common.search')"
|
||||
:title="`${$t('common.search')}(Command/Ctrl + F)`"
|
||||
@click="openSearchModal"
|
||||
>
|
||||
<el-icon size="12">
|
||||
|
Loading…
Reference in New Issue
Block a user