-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed UI, functionallity, added dynamic preview-editor sync
- Loading branch information
Showing
15 changed files
with
692 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,54 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Caveat:[email protected]&family=Inconsolata&display=swap'); | ||
|
||
.notePrev { | ||
width: 13rem; | ||
height: 13rem; | ||
box-shadow: black 10px 15px 10px; | ||
border: none; | ||
background: rgba(255, 255, 255, 0.05); | ||
box-shadow: rgba(0, 0, 0, 0.75) 10px 10px 15px; | ||
border: 1px solid rgba(255, 255, 255, 0.25); | ||
border-top: none; | ||
border-radius: 10px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: flex-start; | ||
color: rgb(255, 255, 255); | ||
text-decoration: none; | ||
font-family: 'Inconsolata', monospace; | ||
text-align: center; | ||
} | ||
|
||
.noteColor { | ||
width: 13rem; | ||
box-sizing: border-box; | ||
height: 18px; | ||
border-top-left-radius: 10px; | ||
border-top-right-radius: 10px; | ||
border: 1px solid rgba(255, 255, 255, 0.5); | ||
} | ||
|
||
.noteContent { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
gap: 4px; | ||
gap: 1rem; | ||
width: 100%; | ||
height: 100%; | ||
box-sizing: border-box; | ||
padding: 1rem; | ||
font-family: 'Noto Sans', sans-serif; | ||
color: black; | ||
text-decoration: none; | ||
text-align: center; | ||
border-radius: 2px; | ||
} | ||
|
||
.prevTit { | ||
font-weight: bolder; | ||
font-weight: normal; | ||
word-wrap: break-word; | ||
width: 100%; | ||
font-family: "Caveat", cursive; | ||
} | ||
|
||
.prevDesc { | ||
font-size: 22px; | ||
font-weight: 200; | ||
font-size: 18px; | ||
word-wrap: break-word; | ||
width: 100%; | ||
font-family: "Caveat", cursive; | ||
text-align: justify; | ||
} | ||
|
||
.yellow { | ||
|
@@ -49,11 +67,12 @@ | |
background-color: rgb(0, 255, 60); | ||
} | ||
|
||
.grey { | ||
.gray { | ||
background-color: rgb(196, 196, 196); | ||
} | ||
|
||
.notePrev:hover { | ||
background-image: linear-gradient(to bottom right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)); | ||
background: rgba(255, 255, 255, 0.1); | ||
transition: background 200ms; | ||
cursor: pointer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<template> | ||
<div data-tauri-drag-region id="container"> | ||
<div id="windowBtnCont"> | ||
<button class="windowBtn" @click="minimize()"> | ||
<img src="../../assets/btn-minimize.png"> | ||
</button> | ||
<button class="windowBtn" @click="maximize()"> | ||
<img :src="!maximized ? '/src/assets/btn-maximize.png' : '/src/assets/btn-unmaximize.png'" > | ||
</button> | ||
<button class="windowBtn" datatype="close" @click="close()"> | ||
<img src="../../assets/btn-close.png"> | ||
</button> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
@import url("./styles.css"); | ||
</style> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from 'vue' | ||
import { window } from '@tauri-apps/api'; | ||
export default defineComponent({ | ||
name: "WindowButtons", | ||
data() { | ||
return { | ||
maximized: false | ||
} | ||
}, | ||
methods: { | ||
minimize() { | ||
window.getCurrent().minimize() | ||
}, | ||
maximize() { | ||
this.maximized = !this.maximized | ||
window.getCurrent().toggleMaximize() | ||
}, | ||
close() { | ||
window.getCurrent().close() | ||
} | ||
} | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#container { | ||
width: 100vw; | ||
height: 36px; | ||
background: transparent; | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
justify-content: flex-end; | ||
user-select: none; | ||
z-index: 999; | ||
position: fixed; | ||
} | ||
|
||
#windowBtnCont { | ||
height: 100%; | ||
width: fit-content | ||
} | ||
|
||
.windowBtn { | ||
height: 100%; | ||
width: 50px; | ||
background: none; | ||
border: none; | ||
box-sizing: border-box; | ||
} | ||
|
||
.windowBtn img { | ||
height: 10px; | ||
width: fit-content; | ||
} | ||
|
||
.windowBtn:hover { | ||
background-color: rgba(255, 255, 255, 0.1); | ||
} | ||
|
||
.windowBtn[datatype="close"]:hover { | ||
background-color: rgba(255, 0, 0, 0.5); | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.