mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-06 20:42:57 +08:00
🐛 Fix(custom): fix sort drop down content css issue
ISSUES CLOSED: #460
This commit is contained in:
@@ -11,7 +11,7 @@ import { createTray, setDockMenu } from 'apis/app/system'
|
|||||||
import { uploadChoosedFiles, uploadClipboardFiles } from 'apis/app/uploader/apis'
|
import { uploadChoosedFiles, uploadClipboardFiles } from 'apis/app/uploader/apis'
|
||||||
import windowManager from 'apis/app/window/windowManager'
|
import windowManager from 'apis/app/window/windowManager'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import { app, globalShortcut, nativeTheme, Notification, protocol, screen } from 'electron'
|
import { app, globalShortcut, Notification, protocol, screen } from 'electron'
|
||||||
import updater from 'electron-updater'
|
import updater from 'electron-updater'
|
||||||
import fs from 'fs-extra'
|
import fs from 'fs-extra'
|
||||||
|
|
||||||
@@ -180,12 +180,6 @@ class LifeCycle {
|
|||||||
windowManager.create(IWindowList.TRAY_WINDOW)
|
windowManager.create(IWindowList.TRAY_WINDOW)
|
||||||
windowManager.create(IWindowList.SETTING_WINDOW)
|
windowManager.create(IWindowList.SETTING_WINDOW)
|
||||||
const isAutoListenClipboard = picgo.getConfig<boolean>(configPaths.settings.isAutoListenClipboard) || false
|
const isAutoListenClipboard = picgo.getConfig<boolean>(configPaths.settings.isAutoListenClipboard) || false
|
||||||
const systemTheme = picgo.getConfig<'light' | 'dark' | 'system' | undefined>(configPaths.settings.systemTheme)
|
|
||||||
if (systemTheme) {
|
|
||||||
nativeTheme.themeSource = systemTheme
|
|
||||||
} else {
|
|
||||||
nativeTheme.themeSource = 'system'
|
|
||||||
}
|
|
||||||
const ClipboardWatcher = clipboardPoll
|
const ClipboardWatcher = clipboardPoll
|
||||||
if (isAutoListenClipboard) {
|
if (isAutoListenClipboard) {
|
||||||
picgo.saveConfig({ [configPaths.settings.isListeningClipboard]: true })
|
picgo.saveConfig({ [configPaths.settings.isListeningClipboard]: true })
|
||||||
|
|||||||
@@ -30,8 +30,7 @@ export interface IConfigStruct {
|
|||||||
}
|
}
|
||||||
settings: {
|
settings: {
|
||||||
shortKey: Record<string, IShortKeyConfig>
|
shortKey: Record<string, IShortKeyConfig>
|
||||||
systemTheme: 'light' | 'dark' | 'auto'
|
isAlwaysForceReload: boolean
|
||||||
customTheme: string
|
|
||||||
logLevel: string[]
|
logLevel: string[]
|
||||||
logPath: string
|
logPath: string
|
||||||
logFileSizeLimit: number
|
logFileSizeLimit: number
|
||||||
@@ -88,6 +87,8 @@ export interface IConfigStruct {
|
|||||||
enableSecondUploader?: boolean
|
enableSecondUploader?: boolean
|
||||||
lastSyncTime?: number
|
lastSyncTime?: number
|
||||||
theme: string
|
theme: string
|
||||||
|
enableAdvancedAnimation: boolean
|
||||||
|
isDisableGPU: boolean
|
||||||
}
|
}
|
||||||
needReload: boolean
|
needReload: boolean
|
||||||
picgoPlugins: IPicGoPlugins
|
picgoPlugins: IPicGoPlugins
|
||||||
@@ -102,6 +103,7 @@ export interface IConfigStruct {
|
|||||||
skipProcess: {
|
skipProcess: {
|
||||||
skipProcessExtList: string
|
skipProcessExtList: string
|
||||||
}
|
}
|
||||||
|
list: IBuildInListItem[]
|
||||||
}
|
}
|
||||||
debug: boolean
|
debug: boolean
|
||||||
PICGO_ENV: string
|
PICGO_ENV: string
|
||||||
@@ -123,8 +125,7 @@ export const configPaths = {
|
|||||||
_path: 'settings.shortKey',
|
_path: 'settings.shortKey',
|
||||||
'picgo:upload': 'settings.shortKey[picgo:upload]',
|
'picgo:upload': 'settings.shortKey[picgo:upload]',
|
||||||
},
|
},
|
||||||
systemTheme: 'settings.systemTheme',
|
isAlwaysForceReload: 'settings.isAlwaysForceReload',
|
||||||
customTheme: 'settings.customTheme',
|
|
||||||
logLevel: 'settings.logLevel',
|
logLevel: 'settings.logLevel',
|
||||||
logPath: 'settings.logPath',
|
logPath: 'settings.logPath',
|
||||||
logFileSizeLimit: 'settings.logFileSizeLimit',
|
logFileSizeLimit: 'settings.logFileSizeLimit',
|
||||||
@@ -181,6 +182,8 @@ export const configPaths = {
|
|||||||
enableSecondUploader: 'settings.enableSecondUploader',
|
enableSecondUploader: 'settings.enableSecondUploader',
|
||||||
lastSyncTime: 'settings.lastSyncTime',
|
lastSyncTime: 'settings.lastSyncTime',
|
||||||
theme: 'settings.theme',
|
theme: 'settings.theme',
|
||||||
|
enableAdvancedAnimation: 'settings.enableAdvancedAnimation',
|
||||||
|
isDisableGPU: 'settings.isDisableGPU',
|
||||||
},
|
},
|
||||||
needReload: 'needReload',
|
needReload: 'needReload',
|
||||||
picgoPlugins: 'picgoPlugins',
|
picgoPlugins: 'picgoPlugins',
|
||||||
|
|||||||
@@ -263,6 +263,7 @@
|
|||||||
/* Control Panel */
|
/* Control Panel */
|
||||||
.control-panel-card {
|
.control-panel-card {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
overflow: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control-panel {
|
.control-panel {
|
||||||
@@ -374,7 +375,7 @@
|
|||||||
border: 1px solid var(--color-border);
|
border: 1px solid var(--color-border);
|
||||||
border-radius: var(--radius-md);
|
border-radius: var(--radius-md);
|
||||||
min-width: 150px;
|
min-width: 150px;
|
||||||
background: var(--color-background-primary);
|
background: var(--color-background-tiertiary);
|
||||||
box-shadow: var(--shadow-lg);
|
box-shadow: var(--shadow-lg);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -383,6 +384,7 @@
|
|||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
color: var(--color-text-primary);
|
color: var(--color-text-primary);
|
||||||
transition: var(--transition-fast);
|
transition: var(--transition-fast);
|
||||||
|
background: var(--color-background-tertiary);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -418,8 +420,7 @@
|
|||||||
|
|
||||||
/* Keep overflow hidden for specific bucket cards that need it */
|
/* Keep overflow hidden for specific bucket cards that need it */
|
||||||
.content-area,
|
.content-area,
|
||||||
.breadcrumb-card,
|
.breadcrumb-card {
|
||||||
.control-panel-card {
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,12 @@ export interface IConfigStruct {
|
|||||||
picBed: {
|
picBed: {
|
||||||
uploader: string
|
uploader: string
|
||||||
current?: string
|
current?: string
|
||||||
|
secondUploader?: string
|
||||||
|
secondUploaderId?: string
|
||||||
|
secondUploaderConfig?: IStringKeyMap
|
||||||
|
proxy?: string
|
||||||
|
transformer?: string
|
||||||
|
list: IPicBedType[]
|
||||||
smms?: ISMMSConfig
|
smms?: ISMMSConfig
|
||||||
qiniu?: IQiniuConfig
|
qiniu?: IQiniuConfig
|
||||||
upyun?: IUpYunConfig
|
upyun?: IUpYunConfig
|
||||||
@@ -20,9 +26,6 @@ export interface IConfigStruct {
|
|||||||
sftpplist?: ISftpPlistConfig
|
sftpplist?: ISftpPlistConfig
|
||||||
lskyplist?: ILskyConfig
|
lskyplist?: ILskyConfig
|
||||||
'aws-s3-plist': IAwsS3PListUserConfig
|
'aws-s3-plist': IAwsS3PListUserConfig
|
||||||
proxy?: string
|
|
||||||
transformer?: string
|
|
||||||
list: IPicBedType[]
|
|
||||||
[others: string]: any
|
[others: string]: any
|
||||||
}
|
}
|
||||||
settings: {
|
settings: {
|
||||||
@@ -81,7 +84,11 @@ export interface IConfigStruct {
|
|||||||
autoImport: boolean
|
autoImport: boolean
|
||||||
autoImportPicBed: string[]
|
autoImportPicBed: string[]
|
||||||
galleryPicBedFilter: string[]
|
galleryPicBedFilter: string[]
|
||||||
|
enableSecondUploader?: boolean
|
||||||
|
lastSyncTime?: number
|
||||||
theme: string
|
theme: string
|
||||||
|
enableAdvancedAnimation: boolean
|
||||||
|
isDisableGPU: boolean
|
||||||
}
|
}
|
||||||
needReload: boolean
|
needReload: boolean
|
||||||
picgoPlugins: IPicGoPlugins
|
picgoPlugins: IPicGoPlugins
|
||||||
@@ -175,6 +182,8 @@ export const configPaths = {
|
|||||||
enableSecondUploader: 'settings.enableSecondUploader',
|
enableSecondUploader: 'settings.enableSecondUploader',
|
||||||
secondPicBedMode: 'settings.secondPicBedMode',
|
secondPicBedMode: 'settings.secondPicBedMode',
|
||||||
theme: 'settings.theme',
|
theme: 'settings.theme',
|
||||||
|
enableAdvancedAnimation: 'settings.enableAdvancedAnimation',
|
||||||
|
isDisableGPU: 'settings.isDisableGPU',
|
||||||
},
|
},
|
||||||
needReload: 'needReload',
|
needReload: 'needReload',
|
||||||
picgoPlugins: 'picgoPlugins',
|
picgoPlugins: 'picgoPlugins',
|
||||||
|
|||||||
Reference in New Issue
Block a user