polish: about-page logo now uses the app icon instead of an OT text mark
This commit is contained in:
1 parent
3aa8b28f89
commit
bbee1d642d
2 files changed
+4
-8
No files matched your search
@@ -2,6 +2,7 @@ import { useEffect, useState } from 'react'
|
|||||||
import { Button, Progress, Select, Switch, Tag } from 'antd'
|
import { Button, Progress, Select, Switch, Tag } from 'antd'
|
||||||
import type { AppInfo, ReleaseNote, UpdateState, UpdateStatus } from '@shared/ipc'
|
import type { AppInfo, ReleaseNote, UpdateState, UpdateStatus } from '@shared/ipc'
|
||||||
import { useSettingsStore } from './store'
|
import { useSettingsStore } from './store'
|
||||||
|
import appIconUrl from '../../../../build/icon.png'
|
||||||
|
|
||||||
const STATUS_TEXT: Record<UpdateStatus, string> = {
|
const STATUS_TEXT: Record<UpdateStatus, string> = {
|
||||||
idle: '点击检查更新',
|
idle: '点击检查更新',
|
||||||
@@ -34,7 +35,7 @@ export function AboutTab(): React.JSX.Element {
|
|||||||
return (
|
return (
|
||||||
<div className="about-tab">
|
<div className="about-tab">
|
||||||
<div className="about-header">
|
<div className="about-header">
|
||||||
<div className="about-logo">OT</div>
|
<img className="about-logo" src={appIconUrl} alt="OpenTerminal" draggable={false} />
|
||||||
<div>
|
<div>
|
||||||
<div className="about-name">OpenTerminal</div>
|
<div className="about-name">OpenTerminal</div>
|
||||||
<div className="about-version">
|
<div className="about-version">
|
||||||
|
|||||||
@@ -380,13 +380,8 @@
|
|||||||
width: 48px;
|
width: 48px;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
background: var(--chrome-hover);
|
object-fit: cover;
|
||||||
color: #3fd06a;
|
display: block;
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
font-weight: 700;
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-name {
|
.about-name {
|
||||||
|
|||||||
Reference in new issue
Block a user