Skip to content

Commit 9e6a19c

Browse files
committed
Show pixel art tool icons as pixelated in Enlarge UI mode
1 parent 9808af2 commit 9e6a19c

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

styles/themes/occult.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@
1616
background-position: calc(-16px * (var(--icon-index) * 2 + 1)) -16px;
1717
} */
1818

19+
20+
/* Show pixel art tool icons as pixelated. */
21+
/* Note: also inheriting image-rendering logic from classic.css */
22+
.enlarge-ui .tool-icon {
23+
image-rendering: -moz-crisp-edges;
24+
image-rendering: crisp-edges;
25+
image-rendering: pixelated;
26+
}
27+
28+
1929
.transparent-mode-option,
2030
.transparent-mode-option.use-svg { /* specificity needed for overriding classic theme; SVG is not supported yet for this theme */
2131
background-image: url("../../images/occult/options-transparency.png");

styles/themes/winter.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,15 @@
7878
background-position: -20px 0; /* opposite for transition to work right */
7979
}
8080

81+
/* Show pixel art tool icons as pixelated. */
82+
/* Note: also inheriting image-rendering logic from classic.css */
83+
.enlarge-ui .tool-icon {
84+
image-rendering: -moz-crisp-edges;
85+
image-rendering: crisp-edges;
86+
image-rendering: pixelated;
87+
}
88+
89+
8190
/* Fancy cursive menus */
8291
.menus * {
8392
font-family: "Princess Sofia", cursive;

0 commit comments

Comments
 (0)