Commit graph

55 commits

Author SHA1 Message Date
Victor Seiji Hariki
f63bbafe0f add cancel button to future generations
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-12 18:49:53 -03:00
Victor Seiji Hariki
0a73687556 add prompt history as suggested in #87
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-12 18:25:32 -03:00
Victor Seiji Hariki
d65f3185c4 resource now use dblclick to rename; download
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-11 20:54:38 -03:00
Victor Seiji Hariki
81e1a4ed28 Thinner collapsibles to save some more space
Tomorrow will see about making the actual history

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-11 19:30:17 -03:00
Victor Seiji Hariki
bf025d2ab8 multiselect now also custom autocomplete
This is mainly to free space for the prompt history on #87

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-11 16:01:22 -03:00
Victor Seiji Hariki
56b184f8fa add open sans to repo (regular)
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-11 09:49:43 -03:00
Victor Seiji Hariki
012f6ae272 add check for --api flag and helpful error message
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-10 21:46:14 -03:00
Victor Seiji Hariki
f8687e9bac Seems like fix didn't work
performance optimization for firefox seems to have broken chrome after
today's changes. Seems like we will have to accept the slower method of
calculating coordinates. At least it is more flexible.

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-08 19:42:14 -03:00
Victor Seiji Hariki
ec59cf5538 Very crude settings interface
Very crude settings interface with only canvas size for now. Canvas size
only affects canvas on next page load. Dynamic resizing in the horizon,
but will take a while.

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-08 18:38:55 -03:00
Victor Seiji Hariki
2cda410b41 add custom select element with autocomplete
Same as a select, but you can kind of search for the item you want. Good
for when you have a lot of models.

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-08 18:23:17 -03:00
Victor Seiji Hariki
2c82c0468f some visual changes to image generation
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-06 18:28:34 -03:00
Victor Seiji Hariki
62ddc38f01 layer history and finally layer delete/merge
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-05 23:22:19 -03:00
Victor Seiji Hariki
87239d0b44 fix #70
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-05 09:00:31 -03:00
Victor Seiji Hariki
6222975825 some... i guess performance improvements for chrome
also fixes pixelated view for chrome

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-04 17:02:46 -03:00
Victor Seiji Hariki
14df643326 layers?
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-04 16:22:35 -03:00
Victor Seiji Hariki
aec096b856 layers... now exist?
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-04 08:00:39 -03:00
Victor Seiji Hariki
583f9245b6 fix eyedropper interactions and remove unused code
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-04 00:22:29 -03:00
Victor Seiji Hariki
4549e21293 fix chrome giant icon/add pipette tool (shift)
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-03 20:00:10 -03:00
Victor Seiji Hariki
514c498391 definitive (for now) fix for None style
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-03 02:47:47 -03:00
Victor Seiji Hariki
ac70691cff
little things
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-02 14:31:49 -03:00
Victor Seiji Hariki
1260537da2
fix slider rendering
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-02 07:31:55 -03:00
tim h
2e668b4a16 more tiny QOL things
upscaler select no longer escapes floating control panel boundary, simple "reset to defaults" button to clear localstorage if desired, maybe get prettier action to stop complaining about where i put the ref :|
2022-12-01 20:31:49 -06:00
Victor Seiji Hariki
6f99b15320
general improvements for connection checking
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-11-30 18:47:30 -03:00
Victor Seiji Hariki
44cf9c0e70 Layers.
Been working on this when I could the last few days.
Not quite infinity. Middle mouse button drag, ctrl mouse wheel zoom.

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-11-29 17:55:25 -03:00
Victor Seiji Hariki
c1b17c1b0e Some start for layering
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-11-28 20:03:58 -03:00
Victor Seiji Hariki
54c381de8e added jsdoc to commands
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-11-28 12:17:07 -03:00
Victor Seiji Hariki
bd98b8dbb1 add some mask actions for mask brush
Add clear to clear all mask, add preview to show mask in full opacity

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-11-26 23:00:41 -03:00
Victor Seiji Hariki
fe2ebec569 Mask now colorful depending on inversion
Blue masking means SD will try to keep image as-is under the mask. Red
masking means SD will try to replace whatever is under the mask. (Red is
default masking, Blue is inverted masking)

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-11-26 22:35:16 -03:00
Victor Seiji Hariki
73c441534b improved network handling
Detects if it is a CORS problem, checks for invalid saved host
configuration, webui connection status indicator

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-11-26 13:10:37 -03:00
Victor Seiji Hariki
ca3533c9e4
some more fixes and things
fixed scrolling on basically everything but the canvas, prompt fields
now automatically expand when focused, prompt, host and negprompt now
are stored on localstorage. on hover prompt and negprompt fields now
show full text in tooltips

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-11-25 20:27:44 -03:00
Victor Seiji Hariki
df5dc32eee Some quick lunch patches
Allows for selections and dreams to be sent to the resource manager,
allows resource deselection when clicking on the currently selected
item, put some extra comments and allow saving of a selected canvas area

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>

Former-commit-id: 963312115d4827de1c8d4fac88a97dd64db7fa15
2022-11-25 13:16:22 -03:00
Victor Seiji Hariki
70d1fda23d a big commit with the selection and stamping tools
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>

Former-commit-id: b3f849f3fdb334916f1a4ee6c81ac6bdf42a8f52
2022-11-25 00:34:34 -03:00
Victor Seiji Hariki
951fbacd6c non-broken version on input-rework
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>

Former-commit-id: 3c337c8cf8d4a65cb2fe0845f6eaf9315eb21ae7
2022-11-24 01:53:14 -03:00
Victor Seiji Hariki
250c833895 Added tool menu and migrated image generation ot new input
Also updates a lot of other things (brush size now independent from
scale factor, split some files, and a lot other things; removed erase
safeguard as now erase is supported by undo/redo; tried adding github
prettier autoformatting to pull requests;

may have some other things as well

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>

Former-commit-id: 0ba21f23c69f9dca2c3189a838b945900b01f81d
2022-11-22 19:28:27 -03:00
Victor Seiji Hariki
87ea1be32d add history list view and interaction
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>

Former-commit-id: 7064b38c9663c0219424b4864243f16d4aa68a24
2022-11-22 02:16:17 -03:00
tim h
7e7146eaa1 dream output text legibility, invert marching ants 2022-11-21 18:04:05 -06:00
tim h
8e40019770 lol whoops 2022-11-21 18:00:20 -06:00
tim h
2c120320ff Merge branch 'main' into checkerboard 2022-11-21 17:57:41 -06:00
Kalekki
5685aadcbb Move info container to make it more obvious its floating 2022-11-21 14:26:23 +02:00
Kalekki
2dedda5d29 clean up leftover chaotic borders 2022-11-21 14:15:11 +02:00
Kalekki
ac0b195a36 Remove white margins around working area 2022-11-21 14:05:57 +02:00
Victor Seiji Hariki
c1bc54a4eb add new history window and fix multi-window support
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-11-21 08:27:21 -03:00
Victor Seiji Hariki
d6435abf2e solid color mask and migration to new input method
reimplements mask using the new input lib, makes mask use a solid color
(masks shouldn't become darker the more you draw over itself) and the
mask layer is now rendered with the alpha using css.

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-11-20 23:29:50 -03:00
Kalekki
d563e8ba3a make draggable class for possible future re-use 2022-11-20 17:31:51 -03:00
tim h
2861c100bd font size/stroke visibility upgrade
for us old folks
2022-11-20 17:31:51 -03:00
tim h
04e208ce04 Merge pull request #21 from seijihariki/edit_utils
Simple Edit History
2022-11-20 12:17:19 -06:00
Victor Seiji Hariki
fe508f8b21 simple command pattern and edit history
Implements command pattern for providing edit history capabilities to
editing. For now, no implementation is done to support keyboard
shortcuts, so the buttons are the only way to navigate. Also, only image
insertion is supported for now. Waiting for the masking updates to
implement masking history.

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-11-20 14:59:11 -03:00
Kalekki
ebf6900bfc make draggable class for possible future re-use 2022-11-20 18:24:17 +02:00
tim h
5b5b1fbfce font size/stroke visibility upgrade
for us old folks
2022-11-19 22:10:20 -06:00
tim h
7f6c42aa51 Merge pull request #11 from Kalekki/UI_rework
New draggable settings panel
2022-11-19 16:15:52 -06:00