From f8ec25b547c8100909f3ff65cf8085fb8797c472 Mon Sep 17 00:00:00 2001 From: Galen Date: Wed, 24 Apr 2024 08:18:54 -0400 Subject: [PATCH] Icons Added for Title Bar. Functions are a bit "sticky"? Sometimes it takes multiple clicks for Maximize to toggle. --- src/Title.tsx | 10 +++++++--- src/assets/react.svg | 1 - src/assets/titlebar/Close.png | Bin 0 -> 246 bytes src/assets/titlebar/Maximize.png | Bin 0 -> 203 bytes src/assets/titlebar/Minimize.png | Bin 0 -> 118 bytes 5 files changed, 7 insertions(+), 4 deletions(-) delete mode 100644 src/assets/react.svg create mode 100644 src/assets/titlebar/Close.png create mode 100644 src/assets/titlebar/Maximize.png create mode 100644 src/assets/titlebar/Minimize.png diff --git a/src/Title.tsx b/src/Title.tsx index 9455cff..b773199 100644 --- a/src/Title.tsx +++ b/src/Title.tsx @@ -1,8 +1,12 @@ import "./Title.css"; import { appWindow } from "@tauri-apps/api/window"; +import Close from "./assets/titlebar/Close.png" +import Maximize from "./assets/titlebar/Maximize.png" +import Minimize from "./assets/titlebar/Minimize.png" function Title() { + // Window Functions abstracted to their own functions because calling them inline onClick made them unresponsive. const minimizeWindow = () => { appWindow.minimize() } @@ -19,20 +23,20 @@ function Title() {
minimize
maximize
- close + close
diff --git a/src/assets/react.svg b/src/assets/react.svg deleted file mode 100644 index 6c87de9..0000000 --- a/src/assets/react.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/assets/titlebar/Close.png b/src/assets/titlebar/Close.png new file mode 100644 index 0000000000000000000000000000000000000000..5180093b3799b254260118fca82e7a26eae257bb GIT binary patch literal 246 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|Hh8)?hFJ72 zowS#?*+9T;zF_XHHxoHEHZcm7PD|jK=FxkEO>;(rZH8oniQ%X7&zUvX{V9Gwx2F8V z^CE`%@3#K#e*U9OY{Idyume-K`vh?5bZR%G-u3BhvMv5oo^k7M;r^8>H>0lg*3FAi z*`dYx(5FDnGf}gl=wL|qX71I!UP7|x5>zeC!d8d)?op9`D)5a}TQsb%h>Q8l=OQvtf2!PC{xWt~$(69C!FVrsszt#_)`6#T;$Vku^1WT5cJ%yJ*k(Um*)c-IDEr$VgpYG6VO2np00i_>zopr0Ne3O A4*&oF literal 0 HcmV?d00001 diff --git a/src/assets/titlebar/Minimize.png b/src/assets/titlebar/Minimize.png new file mode 100644 index 0000000000000000000000000000000000000000..10be9a8961a07506f5eb5e8af8758b02a13b0b4e GIT binary patch literal 118 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|3_M*NLo9le z6C_v4$BsIn OUItHBKbLh*2~7ZChaYqR literal 0 HcmV?d00001