Skip to content

Commit 7bbc5ec

Browse files
committed
Tweak UI styling for better consistency
1 parent e84bedc commit 7bbc5ec

File tree

8 files changed

+36
-16
lines changed

8 files changed

+36
-16
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ When creating a pull request, keep the following in mind:
6969

7070
Typically, a project maintainer will review and test your code before merging it into the project. This process can take some time, and they may ask you for further edits or clarifications in the comments.
7171

72-
7372
## Development Guide
7473

7574
### Prerequisites
@@ -121,7 +120,7 @@ npm run build:pre # apply code formatting
121120
```bash
122121
npm run build:YOUR-OS
123122
```
123+
124124
> For example: `npm run build:win`
125125
126126
The built packages can be found and validated in the `release` directory at your project root (the same location as `package.json`).
127-

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
"vitepress-sidebar": "^1.31.1",
1919
"vue": "^3.5.14"
2020
}
21-
}
21+
}

src/main/MainRunner.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ import { createTray, hideWindow, showWindow } from './tray'
1111
import { loadConfig } from './mcp/init'
1212

1313
const options = {
14-
width: Constants.IS_DEV_ENV ? 1500 : 1200,
15-
height: 650,
14+
width: Constants.IS_DEV_ENV ? 1500 : 1280,
15+
height: 960,
16+
minWidth: 720,
17+
minHeight: 480,
1618
tray: {
1719
// all optional values from DEFAULT_TRAY_OPTIONS can de defined here
1820
enabled: true,
@@ -35,6 +37,8 @@ export const createMainWindow = async (): Promise<BrowserWindow> => {
3537
show: false,
3638
width: options.width,
3739
height: options.height,
40+
minWidth: options.minWidth,
41+
minHeight: options.minHeight,
3842
useContentSize: true,
3943
webPreferences: Constants.DEFAULT_WEB_PREFERENCES,
4044
frame: true

src/renderer/components/common/LocaleBtn.vue

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,20 @@ const handleChangeLanguage = (val): void => {
1919
}
2020
</script>
2121
<template>
22-
<v-badge location="top left" :offset-y="7" :offset-x="4" class="click-through-badge">
22+
<v-badge location="top left" :offset-y="7" :offset-x="5" class="click-through-badge">
2323
<template #badge>
2424
<iconify-icon :icon="localeStore.getIcon2()"></iconify-icon>
2525
</template>
26-
<v-menu transition="fade-transition">
26+
<v-menu transition="fade-transition" :offset="14">
2727
<template #activator="{ props }">
28-
<v-btn v-tooltip:end="$t('locale.title')" icon="mdi-translate" v-bind="props" size="small">
28+
<v-btn
29+
class="ma-1"
30+
density="compact"
31+
rounded="lg"
32+
v-tooltip:start="$t('locale.title')"
33+
icon="mdi-translate"
34+
v-bind="props"
35+
>
2936
</v-btn>
3037
</template>
3138
<v-list class="mb-2">

src/renderer/components/layouts/HeaderLayout.vue

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,16 @@ watchEffect(() => {
3232
// }
3333
</script>
3434
<template>
35-
<v-app-bar :order="-1" color="primary" density="compact" rounded="be-lg">
35+
<v-app-bar block :order="-1" color="primary" height="36" rounded="be-lg">
3636
<v-app-bar-nav-icon
37+
class="ml-2"
38+
density="compact"
39+
rounded="lg"
3740
:disabled="!hasComponent('sideDrawer').value"
3841
@click.stop="layoutStore.sidebar = !layoutStore.sidebar"
3942
>
4043
</v-app-bar-nav-icon>
41-
<v-app-bar-title>{{ $t(titleKey.toString()) }}</v-app-bar-title>
44+
<v-app-bar-title class="text-button">{{ $t(titleKey.toString()) }}</v-app-bar-title>
4245

4346
<v-btn-toggle
4447
v-model="layoutStore.screen"
@@ -76,7 +79,13 @@ watchEffect(() => {
7679
</v-tooltip>
7780
</v-btn> -->
7881
<!-- @click="mcpStore.listTools().then((tools) => console.log(tools))" -->
79-
<v-btn icon="mdi-clipboard-text" size="small" @click="console.log(mcpStore.getServers())">
82+
<v-btn
83+
class="ma-1"
84+
density="compact"
85+
rounded="lg"
86+
icon="mdi-clipboard-text"
87+
@click="console.log(mcpStore.getServers())"
88+
>
8089
</v-btn>
8190
</template>
8291
</v-app-bar>

src/renderer/plugins/vuetify.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ export default createVuetify({
3232
light: {
3333
dark: false,
3434
colors: {
35-
primary: colors.blue.darken3,
36-
secondary: colors.indigo.darken3
35+
primary: colors.blue.darken3, // #1565C0
36+
secondary: colors.indigo.darken3 // #283593
3737
}
3838
},
3939
dark: {
4040
dark: true,
4141
colors: {
42-
primary: colors.indigo.darken2,
43-
secondary: colors.indigo.darken4
42+
primary: colors.indigo.darken2, // #303F9F
43+
secondary: colors.indigo.darken4 // #1A237E
4444
}
4545
}
4646
}

src/renderer/screens/chat/ChatScreen.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const { locale } = useI18n()
2626

2727
<style scoped>
2828
.lottie-container {
29-
height: calc(100vh - 252px);
29+
height: calc(100vh - 218px);
3030
width: 100vw;
3131
}
3232
</style>

src/renderer/screens/mcp/McpCentralStage.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const mcpNews = [
2828
<div v-if="mcpStore.getSelected">
2929
<div v-if="mcpStore.getSelected.primitive === 'tools'">
3030
<v-data-table
31+
hover
3132
:key="mcpStore.getSelected"
3233
hide-default-footer
3334
hide-default-header

0 commit comments

Comments
 (0)