Added Cherry variant

This commit is contained in:
Niléane 2023-11-21 00:29:03 +01:00
parent 9e6052cb7f
commit 950c828bbc
No known key found for this signature in database
6 changed files with 10 additions and 5 deletions

View File

@ -10,8 +10,9 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v4
- run: cp TangerineUI.css mastodon/app/javascript/styles/tangerineui/layout-single-column.scss
- run: cp TangerineUI-purple.css mastodon/app/javascript/styles/tangerineui-purple/layout-single-column.scss
- run: cp TangerineUI.css mastodon/app/javascript/styles/tangerineui/tangerineui.scss
- run: cp TangerineUI-purple.css mastodon/app/javascript/styles/tangerineui-purple/tangerineui-purple.scss
- run: cp TangerineUI-cherry.css mastodon/app/javascript/styles/tangerineui-cherry/tangerineui-cherry.scss
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Copy CSS files to installation folder

View File

@ -101,6 +101,7 @@ contrast: styles/contrast.scss
mastodon-light: styles/mastodon-light.scss
tangerineui: styles/tangerineui.scss | **new**
tangerineui-purple: styles/tangerineui-purple.scss | **new**
tangerineui-cherry: styles/tangerineui-cherry.scss | **new**
```
3. **Add a localized name (optional).** You can edit each desired language's locale file in `config/locales/[lang].yml` to add a localized string name for Tangerine UI. You need to do this for every language you expect your users to use. Otherwise, in their themes list, they will see the unlocalized theme name ("*tangerineui-purple*"), instead of a readable theme name ("*Tangerine UI (Purple)*").
@ -112,6 +113,7 @@ themes:
mastodon-light: Mastodon (Light)
tangerineui: Tangerine UI | **new**
tangerineui-purple: Tangerine UI (Purple) | **new**
tangerineui-cherry: Tangerine UI (Cherry) | **new**
```
4. **Compile theme assets and restart.** Run `RAILS_ENV=production bundle exec rails assets:precompile` and restart your Mastodon instance for the changes to take effect.

View File

@ -1,5 +1,5 @@
/* TangerineUI 🍊 for Mastodon Cherry variant 🍒
version: 2.0.0
version: 2.0.0-pre
A Tangerine redesign for Mastodon's Web UI.
https://github.com/nileane/TangerineUI-for-Mastodon/

View File

@ -0,0 +1,2 @@
@import 'application';
@import 'tangerineui-purple/tangerineui-cherry.scss';

View File

@ -1,2 +1,2 @@
@import 'application';
@import 'tangerineui-purple/layout-single-column.scss';
@import 'tangerineui-purple/tangerineui-purple.scss';

View File

@ -1,2 +1,2 @@
@import 'application';
@import 'tangerineui/layout-single-column.scss';
@import 'tangerineui/tangerineui.scss';