-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #443 from allusion-app/theme-customization
Theme customization
- Loading branch information
Showing
21 changed files
with
397 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Exiftool | ||
|
||
These files were downloaded from https://exiftool.org/index.html | ||
- The `win` version was renamed from `exiftool(-k).exe` to `exiftool.exe`. This one does not need the `lib` folder. | ||
- The `nix` version was extracted from the Perl archive (first download link), renamed from `exiftool` to `exiftool.pl`. This one requires the `lib` folder. | ||
|
||
Current version: 12.23 (April 1, 2021) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Test images | ||
It would be nice to have automated tests for ensuring we support all image types and filenames we intend to support, but it's quite difficult to set up. | ||
|
||
For now, just add this directory as a Location in Allusion to confirm all files we want to support show up properly. | ||
Feel free to add more test images. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Custom themes | ||
|
||
This folder contains a couple of theme presets, that will be copied to the user's Allusion custom themes directory when installing Allusion. | ||
|
||
## Creating a custom theme | ||
The default theme of Allusion can be used as a reference, which can be found in the `/resources/style/remake/themes.scss` file of Allusion's source code, which can be found [here](https://github.com/allusion-app/Allusion/blob/master/resources/style/remake/themes.scss). | ||
|
||
Feel free to share yours and try those of others through the [Github Discussions](https://github.com/allusion-app/Allusion/discussions/categories/show-and-tell)! | ||
|
||
## Loading a custom theme | ||
1. Open the settings panel | ||
2. In Appearance > Theme Customization, click the Folder button to open the "themes" folder | ||
3. Copy one of the preset files or create a new `.css` file with the name of your theme and customize it to your liking | ||
4. Click the Refresh button in the settings panel | ||
5. Pick the theme from the dropdown menu | ||
6. Enjoy! | ||
|
||
## DevTools | ||
The built-in Chrome Dev Tools can be used to preview colors intuitively before noting them down in a CSS file. It can be accessed through the settings panel at Advanced > Toggle DevTools or by pressing `Ctrl + Shift + I` in the main Allusion window. | ||
|
||
The theme colors are applied through the `.light` and `.dark` classes, which are set on the first HTML child element of `body > #app`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.dark { | ||
--text-color: rgb(200, 200, 200); | ||
--text-color-alt: rgb(0, 0, 0); | ||
--text-color-muted: rgb(128, 128, 128); | ||
--text-color-strong: rgb(255, 255, 255); | ||
|
||
--background-color: hsl(223, 11%, 20%); | ||
--background-color-alt: hsl(229, 14%, 25%); | ||
--background-color-selected: hsl(209, 48%, 40%); | ||
|
||
--shade1: hsl(216, 11%, 15%); | ||
--shade2: hsl(240, 14%, 13%); | ||
|
||
--titlebar-background-color: hsl(200, 13%, 14%); | ||
--titlebar-background-color-alt: hsl(204, 7%, 18%); | ||
--titlebar-color: #777; | ||
} | ||
|
||
.light { | ||
--text-color: hsl(0, 0%, 20%); | ||
--text-color-alt: hsl(0, 0%, 90%); | ||
--text-color-muted: rgb(128, 128, 128); | ||
--text-color-strong: hsl(0, 0%, 10%); | ||
|
||
--background-color: hsl(0, 0%, 85%); | ||
--background-color-alt: hsl(0, 0%, 92%); | ||
--background-color-selected: hsl(209, 66%, 72%); | ||
|
||
--shade1: hsl(0, 0%, 86%); | ||
--shade2: hsl(0, 0%, 78%); | ||
|
||
--titlebar-background-color: hsl(216, 8%, 83%); | ||
--titlebar-background-color-alt: hsl(216, 5%, 75%); | ||
--titlebar-color: #777; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
.dark { | ||
--text-color: rgb(200, 200, 200); | ||
--text-color-alt: rgb(0, 0, 0); | ||
--text-color-muted: rgb(128, 128, 128); | ||
--text-color-strong: rgb(255, 255, 255); | ||
|
||
--background-color: hsl(0, 0%, 12%); | ||
--background-color-alt: hsl(0, 0%, 16%); | ||
--background-color-selected: hsl(209, 0%, 35%); | ||
|
||
--shade1: hsl(216, 0%, 9%); | ||
--shade2: hsl(240, 0%, 8%); | ||
|
||
--titlebar-background-color: hsl(200, 0%, 9%); | ||
--titlebar-background-color-alt: hsl(204, 0%, 13%); | ||
--titlebar-color: #888; | ||
} | ||
|
||
.light { | ||
--text-color: rgb(64, 64, 64); | ||
--text-color-alt: rgb(255, 255, 255); | ||
--text-color-muted: rgb(128, 128, 128); | ||
--text-color-strong: rgb(0, 0, 0); | ||
|
||
--background-color: rgb(240, 240, 240); | ||
--background-color-alt: rgb(248, 248, 248); | ||
--background-color-selected: hsl(209, 0%, 77%); | ||
|
||
--shade1: hsl(0, 0%, 91%); | ||
--shade2: hsl(0, 0%, 87%); | ||
|
||
--titlebar-background-color: hsl(0, 0%, 88%); | ||
--titlebar-background-color-alt: hsl(216, 0%, 80%); | ||
--titlebar-color: #888; | ||
} | ||
|
||
.dark, .light { | ||
--accent-color: #888; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Custom themes | ||
|
||
This folder contains a couple of theme presets, that will be copied to the user's Allusion custom themes directory when installing Allusion. | ||
|
||
## Creating a custom theme | ||
The default theme of Allusion can be used as a reference, which can be found in the `/resources/style/remake/themes.scss` file of Allusion's source code, which can be found [here](https://github.com/allusion-app/Allusion/blob/master/resources/style/remake/themes.scss). | ||
|
||
Feel free to share yours and try those of others through the [Github Discussions](https://github.com/allusion-app/Allusion/discussions/categories/show-and-tell)! | ||
|
||
## Loading a custom theme | ||
1. Open the settings panel | ||
2. In Appearance > Theme Customization, click the Folder button to open the "themes" folder | ||
3. Copy one of the preset files or create a new `.css` file with the name of your theme and customize it to your liking | ||
4. Click the Refresh button in the settings panel | ||
5. Pick the theme from the dropdown menu | ||
6. Enjoy! | ||
|
||
## DevTools | ||
The built-in Chrome Dev Tools can be used to preview colors intuitively before noting them down in a CSS file. It can be accessed through the settings panel at Advanced > Toggle DevTools or by pressing `Ctrl + Shift + I` in the main Allusion window. | ||
|
||
The theme colors are applied through the `.light` and `.dark` classes, which are set on the first HTML child element of `body > #app`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.