Skip to content

Commit

Permalink
chore(prearea): 修改偏好设置样式
Browse files Browse the repository at this point in the history
  • Loading branch information
GwokHiujin authored and Thysrael committed May 27, 2023
1 parent 47d3e27 commit a0fadd2
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 2 deletions.
18 changes: 18 additions & 0 deletions gitCommand.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@echo off
setlocal enabledelayedexpansion

set "COMMAND=%~1"

:execute_command
echo Executing command: %COMMAND%
for /f "tokens=1 delims=:" %%a in ('%COMMAND% 2^>^&1') do (
set output=%%a
if "!output:~0,34!"=="kex_exchange_identification " (
echo Output found: !output!
goto execute_command
) else (
echo !output!
)
)

echo No matching output found. Exiting.
Binary file added src/renderer/assets/FicGraph0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/renderer/assets/FicGraph1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/renderer/assets/FicGraph2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/renderer/assets/FicTree0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/renderer/assets/FicTree1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/renderer/assets/FicTree2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/renderer/components/mindEditor/FicGraph.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ export default {
requestAnimationFrame(animate);
})() // IIFE
bus.on('setGraphStyle', (obj) => {
theme = obj.theme === 1 ? theme1 : obj.theme === 2 ? theme2 : theme0
})
bus.on('exportGraphPNG', () => {
// exportPNG()
const canvas = document.getElementById('ficGraph').querySelector('canvas')
Expand Down
14 changes: 12 additions & 2 deletions src/renderer/components/textArea/PreArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="preference-item">
<div class="font-bold my-4" style="font-size: 20px">侧边栏</div>
<label>启动时侧边宽度:</label>
<input type="number" v-model="common.sideBarInitWidth" min="250" max="400"> px
<input type="number" v-model="common.sideBarInitWidth" class="numberInput rounded-md" min="250" max="400"> px
</div>
</div>
<div v-show="preMode === 1" class="preferences">
Expand Down Expand Up @@ -186,13 +186,18 @@
@click="treeThemePath = index; ficus.treeSetting.theme = treeThemePath; showTreeThemeSelection = !showTreeThemeSelection"
class="m-2 px-2 py-1 rounded-md imgSelectionItem">
{{ option }}
<div class="p-1 mt-2">
<img class="rounded-md" v-if="index === 0" alt="theme0" src="../../assets/FicTree0.png">
<img class="rounded-md" v-else-if="index === 1" alt="theme1" src="../../assets/FicTree1.png">
<img class="rounded-md" v-if="index === 2" alt="theme2" src="../../assets/FicTree2.png">
</div>
</li>
</ul>
</div>

<div class="preference-item">
<div class="font-bold my-4" style="font-size: 20px">.ficusignore</div>
<input class="numberInput rounded-md p-2 text-gray-700" v-model="ficus.graphSetting.ficusIgnore">
<textarea class="numberInput rounded-md p-2 text-gray-700 w-full" style="height: 100px" v-model="ficus.graphSetting.ficusIgnore"/>
</div>

<div class="preference-item">
Expand All @@ -209,6 +214,11 @@
@click="graphThemePath = index; ficus.graphSetting.theme = graphThemePath; showGraphThemeSelection = !showGraphThemeSelection"
class="m-2 px-2 py-1 rounded-md imgSelectionItem">
{{ option }}
<div class="p-1 mt-2">
<img class="rounded-md shadow-md" v-if="index === 0" alt="theme0" src="../../assets/FicGraph0.png">
<img class="rounded-md shadow-md" v-else-if="index === 1" alt="theme1" src="../../assets/FicGraph1.png">
<img class="rounded-md shadow-md" v-if="index === 2" alt="theme2" src="../../assets/FicGraph2.png">
</div>
</li>
</ul>
</div>
Expand Down

0 comments on commit a0fadd2

Please sign in to comment.