10000 Show pixel art tool icons as pixelated in Enlarge UI mode · 1j01/jspaint@9e6a19c · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
Show pixel art tool icons as pixelated in Enlarge UI mode
Browse files Browse the repository at this point in the history
  • Loading branch information
1j01 committed Dec 10, 2024
1 parent 9808af2 commit 9e6a19c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions styles/themes/occult.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@
background-position: calc(-16px * (var(--icon-index) * 2 + 1)) -16px;
} */


/* Show pixel art tool icons as pixelated. */
/* Note: also inheriting image-rendering logic from classic.css */
.enlarge-ui .tool-icon {
image-rendering: -moz-crisp-edges;
image-rendering: crisp-edges;
image-rendering: pixelated;
}


.transparent-mode-option,
.transparent-mode-option.use-svg { /* specificity needed for overriding classic theme; SVG is not supported yet for this theme */
background-image: url("../../images/occult/options-transparency.png");
Expand Down
9 changes: 9 additions & 0 deletions styles/themes/winter.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@
background-position: -20px 0; /* opposite for transition to work right */
}

/* Show pixel art tool icons as pixelated. */
/* Note: also inheriting image-rendering logic from classic.css */
.enlarge-ui .tool-icon {
image-rendering: -moz-crisp-edges;
image-rendering: crisp-edges;
image-rendering: pixelated;
}


/* Fancy cursive menus */
.menus * {
font-family: "Princess Sofia", cursive;
Expand Down

0 comments on commit 9e6a19c

Please sign in to comment.
0