Skip to content

Commit

Permalink
add: dark mode support
Browse files Browse the repository at this point in the history
  • Loading branch information
windingwind committed Nov 29, 2023
1 parent d5fc713 commit 6f6f1b7
Show file tree
Hide file tree
Showing 16 changed files with 3,537 additions and 2,874 deletions.

Large diffs are not rendered by default.

Binary file added addon/chrome/content/lib/css/icons/dxicons.ttf
Binary file not shown.
Binary file added addon/chrome/content/lib/css/icons/dxicons.woff
Binary file not shown.
Binary file added addon/chrome/content/lib/css/icons/dxicons.woff2
Binary file not shown.
Binary file added addon/chrome/content/lib/css/icons/dxiconsios.eot
Binary file not shown.
Binary file added addon/chrome/content/lib/css/icons/dxiconsios.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
29 changes: 7 additions & 22 deletions addon/chrome/content/lib/js/dx.all.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion addon/chrome/content/syncDiff.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link
rel="stylesheet"
type="text/css"
href="chrome://__addonRef__/content/lib/css/dx.light.css"
href="chrome://__addonRef__/content/lib/css/dx.light.compact.css"
/>
<link rel="stylesheet" href="chrome://__addonRef__/content/tooltip.css" />
<link
Expand Down
15 changes: 15 additions & 0 deletions addon/chrome/content/tooltip.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,18 @@
background: #b3b3b3;
text-decoration: none;
}

@media (prefers-color-scheme: dark) {
.tool-button {
background: #2e2e2e;
border: solid #797979 1px;
}

.tool-button:hover {
background: #494949;
}

.tool-button:active {
background: #5c5c5c;
}
}
14 changes: 13 additions & 1 deletion addon/chrome/content/treeView.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,23 @@
#outline-container {
color: -moz-DialogText;
}

.dx-treeview-toggle-item-visibility {
color: currentColor !important;
}

@media (prefers-color-scheme: dark) {

:not(.dx-state-focused) > .dx-treeview-item.dx-state-hover {
background-color: #494949;
color: #fff;
}
}
</style>
<link
rel="stylesheet"
type="text/css"
href="chrome://__addonRef__/content/lib/css/dx.light.css"
href="chrome://__addonRef__/content/lib/css/dx.light.compact.css"
/>
<div
class="dx-viewport"
Expand Down
3 changes: 3 additions & 0 deletions src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export const ICONS = {
p-id="14217"
width="18"
height="18"
fill="currentColor"
>
<path
d="M928 637c-8.8 0-16-7.2-16-16v-77c0-53-43-96-96-96H560c-8.8 0-16-7.2-16-16v-32c0-8.8 7.2-16 16-16h80c53 0 96-43 96-96V144c0-53-43-96-96-96H384c-53 0-96 43-96 96v144c0 53 43 96 96 96h80c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H208c-53 0-96 43-96 96v77c0 8.8-7.2 16-16 16-53 0-96 43-96 96v131c0 53 43 96 96 96h96c53 0 96-43 96-96V733c0-53-43-96-96-96-8.8 0-16-7.2-16-16v-77c0-17.7 14.3-32 32-32h256c8.8 0 16 7.2 16 16v94c0 8.3-6.7 15-15 15h-1c-53 0-96 43-96 96v131c0 53 43 96 96 96h96c53 0 96-43 96-96V733c0-53-43-96-96-96h-1c-8.3 0-15-6.7-15-15v-94c0-8.8 7.2-16 16-16h256c17.7 0 32 14.3 32 32v77c0 8.8-7.2 16-16 16-53 0-96 43-96 96v131c0 53 43 96 96 96h96c53 0 96-43 96-96V733c0-53-43-96-96-96z m-736 64c17.6 0 32 14.4 32 32v131c0 17.6-14.4 32-32 32H96c-17.6 0-32-14.4-32-32V733c0-17.6 14.4-32 32-32h96z m368 0c17.6 0 32 14.4 32 32v131c0 17.6-14.4 32-32 32h-96c-17.6 0-32-14.4-32-32V733c0-17.6 14.4-32 32-32h96zM384 320c-17.6 0-32-14.4-32-32V144c0-17.6 14.4-32 32-32h256c17.6 0 32 14.4 32 32v144c0 17.6-14.4 32-32 32H384z m576 544c0 17.6-14.4 32-32 32h-96c-17.6 0-32-14.4-32-32V733c0-17.6 14.4-32 32-32h96c17.6 0 32 14.4 32 32v131z"
Expand All @@ -108,6 +109,7 @@ export const ICONS = {
p-id="6557"
width="18"
height="18"
fill="currentColor"
>
<path
d="M828.1 896.7H199.9c-73.2 0-132.8-59.6-132.8-132.8V514.5c0-17.7 14.3-32 32-32s32 14.3 32 32v249.4c0 37.9 30.9 68.8 68.8 68.8h628.2c37.9 0 68.8-30.9 68.8-68.8V514.5c0-17.7 14.3-32 32-32s32 14.3 32 32v249.4c0 73.2-59.6 132.8-132.8 132.8z"
Expand Down Expand Up @@ -135,6 +137,7 @@ export const ICONS = {
p-id="1778"
width="18"
height="18"
fill="currentColor"
>
<path
d="M903.526 542.788c-11.476-109.267-69.113-209.266-157.91-273.966 1.775-42.203-8.091-85.392-30.916-124.607C651.078 34.909 510.893-2.126 401.587 61.495c-75.837 44.141-116.869 125.136-113.649 207.104-69.606 50.492-123.007 124.277-147.063 213.792a391.809 391.809 0 0 0-11.196 59.809c-37.458 19.563-69.947 49.713-92.506 89.106-62.851 109.751-24.832 249.672 84.919 312.523 76.13 43.597 166.769 38.645 236.139-5.102a391.907 391.907 0 0 0 57.362 20.29c89.516 24.056 180.13 14.833 258.713-20.088 35.68 22.675 78.051 35.746 123.464 35.587 126.472-0.444 228.638-103.331 228.194-229.803-0.31-87.709-49.894-163.714-122.438-201.925zM343.497 234.956c7.264-51.226 37.068-98.744 85.254-126.791 83.531-48.619 190.659-20.317 239.278 63.214 11.79 20.256 19.044 41.901 22.096 63.762a175.057 175.057 0 0 1-2.102 60.33c-9.855 46.729-38.683 89.27-83.209 115.186-83.531 48.619-190.659 20.317-239.278-63.214-9.688-16.645-16.312-34.228-20.063-52.097a174.622 174.622 0 0 1-1.976-60.39z m9.101 640.606a174.59 174.59 0 0 1-51.354 31.888c-47.97 19.273-103.973 17.204-152.318-10.482-83.87-48.03-112.925-154.957-64.894-238.828 11.641-20.328 26.749-37.424 44.142-50.994a175.094 175.094 0 0 1 53.336-28.371c45.394-14.826 96.646-11.13 141.349 14.471 83.871 48.031 112.925 154.957 64.894 238.828-9.586 16.742-21.526 31.292-35.155 43.488z m77.009 31.305a339.803 339.803 0 0 1-24.38-7.545 229.776 229.776 0 0 0 29.388-40.412c62.851-109.751 24.832-249.672-84.919-312.523-51.188-29.314-108.937-36.677-162.371-25.063a339.779 339.779 0 0 1 5.7-24.919c18.21-67.764 55.959-125.048 105.538-167.454a229.77 229.77 0 0 0 20.304 45.656c63.621 109.306 203.806 146.341 313.112 82.72 51.001-29.685 86.26-76.04 102.911-128.148 57.693 49.633 96.988 117.799 111.025 192.597a229.761 229.761 0 0 0-49.756-5.258c-126.472 0.444-228.638 103.331-228.194 229.803 0.207 58.987 22.705 112.68 59.48 153.148-61.556 21.657-130.06 25.612-197.838 7.398z m367.972 13.649c-23.467 0.082-45.866-4.47-66.346-12.777a175.093 175.093 0 0 1-51.198-32.023c-35.495-31.897-57.89-78.104-58.07-129.584-0.34-96.649 77.735-175.274 174.384-175.614 19.296-0.068 37.87 2.998 55.249 8.705a174.572 174.572 0 0 1 53.254 28.504c40.693 31.906 66.915 81.451 67.111 137.175 0.34 96.649-77.735 175.274-174.384 175.614z"
Expand Down

0 comments on commit 6f6f1b7

Please sign in to comment.