mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-03 14:03:57 +00:00
app title
This commit is contained in:
@@ -347,7 +347,7 @@ function createWindow() {
|
|||||||
mainWindow = new BrowserWindow({
|
mainWindow = new BrowserWindow({
|
||||||
width: 1200,
|
width: 1200,
|
||||||
height: 800,
|
height: 800,
|
||||||
title: 'DbGate',
|
title: isProApp() ? 'DbGate Premium' : 'DbGate',
|
||||||
frame: useNativeMenu,
|
frame: useNativeMenu,
|
||||||
titleBarStyle: useNativeMenu ? undefined : 'hidden',
|
titleBarStyle: useNativeMenu ? undefined : 'hidden',
|
||||||
...bounds,
|
...bounds,
|
||||||
|
|||||||
@@ -2,8 +2,11 @@
|
|||||||
import { activeTab, currentDatabase } from '../stores';
|
import { activeTab, currentDatabase } from '../stores';
|
||||||
import getElectron from './getElectron';
|
import getElectron from './getElectron';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
|
import { isProApp } from './proTools';
|
||||||
|
|
||||||
$: title = _.compact([$activeTab?.title, $currentDatabase?.name, 'DbGate']).join(' - ');
|
$: title = _.compact([$activeTab?.title, $currentDatabase?.name, isProApp() ? 'DbGate Premium' : 'DbGate']).join(
|
||||||
|
' - '
|
||||||
|
);
|
||||||
|
|
||||||
$: {
|
$: {
|
||||||
const electron = getElectron();
|
const electron = getElectron();
|
||||||
|
|||||||
@@ -8,8 +8,11 @@
|
|||||||
import { isMac } from '../utility/common';
|
import { isMac } from '../utility/common';
|
||||||
import getElectron from '../utility/getElectron';
|
import getElectron from '../utility/getElectron';
|
||||||
import { apiOn } from '../utility/api';
|
import { apiOn } from '../utility/api';
|
||||||
|
import { isProApp } from '../utility/proTools';
|
||||||
|
|
||||||
$: title = _.compact([$activeTab?.title, $currentDatabase?.name, 'DbGate']).join(' - ');
|
$: title = _.compact([$activeTab?.title, $currentDatabase?.name, isProApp() ? 'DbGate Premium' : 'DbGate']).join(
|
||||||
|
' - '
|
||||||
|
);
|
||||||
const electron = getElectron();
|
const electron = getElectron();
|
||||||
|
|
||||||
let isMaximized = false;
|
let isMaximized = false;
|
||||||
@@ -36,7 +39,10 @@
|
|||||||
<FontIcon icon="icon window-minimize" />
|
<FontIcon icon="icon window-minimize" />
|
||||||
</div>
|
</div>
|
||||||
<div class="button">
|
<div class="button">
|
||||||
<FontIcon icon={`icon ${isMaximized ? 'window-restore' : 'window-maximize'}`} on:click={() => electron.send('window-action', 'maximize')} />
|
<FontIcon
|
||||||
|
icon={`icon ${isMaximized ? 'window-restore' : 'window-maximize'}`}
|
||||||
|
on:click={() => electron.send('window-action', 'maximize')}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="button close-button" on:click={() => electron.send('window-action', 'close')}>
|
<div class="button close-button" on:click={() => electron.send('window-action', 'close')}>
|
||||||
<FontIcon icon="icon window-close" />
|
<FontIcon icon="icon window-close" />
|
||||||
|
|||||||
Reference in New Issue
Block a user