-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
276 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Contributing | ||
|
||
## Color themes | ||
|
||
Requirements: Python 3, npm | ||
|
||
Run `npm run build:color-themes`. Alternatively, `cd` into `src` and run `build.py`. Open this project in VS Code and hit F5 to test out your changes. | ||
|
||
Adwaita syntax highlighting rules are translated from a GtkSourceView style scheme. This is far from perfect, but I've tried to make sure most popular languages look good. If something seems too off, open an issue. | ||
|
||
## Product icons | ||
|
||
Requirements: Python 3, npm, [nanoemoji](https://github.com/googlefonts/nanoemoji) | ||
|
||
Adding a new icon: | ||
|
||
1. Obtain a .svg icon in the [Icon Library](https://flathub.org/apps/details/org.gnome.design.IconLibrary) app | ||
2. Put it into [icons/svg/](icons/svg/), incrementing the name in hexadecimal | ||
3. Open it with a text editor, replace the hardcoded color with `currentColor` and apply `style="transform:scale(0.8)translate(2,2)"` as the icons are too big by default for some reason | ||
4. Edit the icon if needed | ||
5. Add it to [adwaita.json](icons/adwaita.json) | ||
6. Build the .ttf file with `npm run build:product-icons` | ||
|
||
This process should be automated in the future. | ||
|
||
List of icons edited in step 3: | ||
|
||
- All window controls got a background circle with opacity 0.1 | ||
- `layout` is `grid-symbolic` modified in Inkscape | ||
|
||
The menu bar icon must have the code point of U+EB94. It's [!important](https://github.com/microsoft/vscode/blob/2a16bdb4677649893126816d2e22fce76288eeb7/src/vs/base/browser/ui/menu/menubar.css#L102) for some reason. |
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
Binary file not shown.
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,73 @@ | ||
{ | ||
"fonts": [ | ||
{ | ||
"id": "adwaita-icons", | ||
"src": [ | ||
{ | ||
"path": "./adwaita-icons.ttf", | ||
"format": "woff" | ||
} | ||
], | ||
"weight": "normal", | ||
"style": "normal" | ||
} | ||
], | ||
"iconDefinitions": { | ||
"chrome-close": { | ||
"fontCharacter": "\\ea01", | ||
"fontId": "adwaita-icons" | ||
}, | ||
"chrome-maximize": { | ||
"fontCharacter": "\\ea02", | ||
"fontId": "adwaita-icons" | ||
}, | ||
"chrome-minimize": { | ||
"fontCharacter": "\\ea03", | ||
"fontId": "adwaita-icons" | ||
}, | ||
"chrome-restore": { | ||
"fontCharacter": "\\ea04", | ||
"fontId": "adwaita-icons" | ||
}, | ||
"menubar-more": { | ||
"fontCharacter": "\\eb94", | ||
"fontId": "adwaita-icons" | ||
}, | ||
"layout-sidebar-left": { | ||
"fontCharacter": "\\ea05", | ||
"fontId": "adwaita-icons" | ||
}, | ||
"layout-sidebar-left-off": { | ||
"fontCharacter": "\\ea06", | ||
"fontId": "adwaita-icons" | ||
}, | ||
"layout-panel": { | ||
"fontCharacter": "\\ea07", | ||
"fontId": "adwaita-icons" | ||
}, | ||
"layout-panel-off": { | ||
"fontCharacter": "\\ea08", | ||
"fontId": "adwaita-icons" | ||
}, | ||
"layout-sidebar-right": { | ||
"fontCharacter": "\\ea09", | ||
"fontId": "adwaita-icons" | ||
}, | ||
"layout-sidebar-right-off": { | ||
"fontCharacter": "\\ea0a", | ||
"fontId": "adwaita-icons" | ||
}, | ||
"layout": { | ||
"fontCharacter": "\\ea0b", | ||
"fontId": "adwaita-icons" | ||
}, | ||
"arrow-left": { | ||
"fontCharacter": "\\ea0c", | ||
"fontId": "adwaita-icons" | ||
}, | ||
"arrow-right": { | ||
"fontCharacter": "\\ea0d", | ||
"fontId": "adwaita-icons" | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.