From f897d6f5beaa5e40555f1674bf38769267475a38 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Fri, 31 May 2024 09:43:45 -0700 Subject: [PATCH] Added pen icon --- gui/notepad/spritesheet10x10.chr | Bin 4096 -> 4096 bytes gui/notepad/src/assets.tal | 3 +++ gui/notepad/src/notepad.tal | 4 +++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gui/notepad/spritesheet10x10.chr b/gui/notepad/spritesheet10x10.chr index 2e1ebc56b237dc57142742e48c9e51f932b0a2bc..d9c4ae00ee3840736a4c80963d7b02ea813d0780 100644 GIT binary patch delta 42 zcmV+_0M-A1Ab=pC1PI{p$V4I$2?mkj7zn`N(2z(-BqWpJ1Na3J5(xh Ap#T5? delta 16 WcmZorXi!+dve|+402h#OU<3dzEd<~I diff --git a/gui/notepad/src/assets.tal b/gui/notepad/src/assets.tal index fed2067..2ab4c90 100644 --- a/gui/notepad/src/assets.tal +++ b/gui/notepad/src/assets.tal @@ -13,6 +13,9 @@ @mouse-icn [ 80c0 e0f0 f8fc feff f8d8 8c0c 0606 0000 ] +@pen-icn [ + c0e0 9090 4848 2424 1212 0909 0600 0000 ] + @bar-icn &a [ 0000 007e 007e 007e 007e 007e 007e 0000 ] &b [ diff --git a/gui/notepad/src/notepad.tal b/gui/notepad/src/notepad.tal index f982bad..7c06864 100644 --- a/gui/notepad/src/notepad.tal +++ b/gui/notepad/src/notepad.tal @@ -117,7 +117,7 @@ POP BRK @on-mouse-sketch ( -> ) - [ LIT2 00 -Mouse/state ] DEI NEQ #41 ADD ;mouse-icn + [ LIT2 00 -Mouse/state ] DEI NEQ #41 ADD ;pen-icn ( | handle states ) [ LIT &last $1 ] .Mouse/state DEI DUP ,&last STR ( ) DUP2 #0100 NEQ2 ?{ file-save } @@ -200,6 +200,8 @@ @toggle-sketch ( -- ) .selection/sketch LDZk #01 EOR SWP STZ + #41 ;pen-icn ;caret-icn .selection/sketch LDZ ?{ SWP2 } + POP2 JMP2r @erase-sketch ( -- )