From 3d3061f453496e2f58a6ec2297af0799a08e3d69 Mon Sep 17 00:00:00 2001
From: piousdeer <31318219+piousdeer@users.noreply.github.com>
Date: Thu, 1 Dec 2022 07:10:22 +0700
Subject: [PATCH] Add product icons (see #11)
---
CONTRIBUTING.md | 31 ++++++++++++++
README.md | 6 +--
package.json | 10 ++++-
product-icons/adwaita-icons.ttf | Bin 0 -> 2764 bytes
product-icons/adwaita.json | 73 ++++++++++++++++++++++++++++++++
product-icons/scalable/ea01.svg | 10 +++++
product-icons/scalable/ea02.svg | 10 +++++
product-icons/scalable/ea03.svg | 10 +++++
product-icons/scalable/ea04.svg | 10 +++++
product-icons/scalable/ea05.svg | 8 ++++
product-icons/scalable/ea06.svg | 8 ++++
product-icons/scalable/ea07.svg | 8 ++++
product-icons/scalable/ea08.svg | 8 ++++
product-icons/scalable/ea09.svg | 8 ++++
product-icons/scalable/ea0a.svg | 8 ++++
product-icons/scalable/ea0b.svg | 49 +++++++++++++++++++++
product-icons/scalable/ea0c.svg | 8 ++++
product-icons/scalable/ea0d.svg | 8 ++++
product-icons/scalable/eb94.svg | 8 ++++
19 files changed, 276 insertions(+), 5 deletions(-)
create mode 100644 CONTRIBUTING.md
create mode 100644 product-icons/adwaita-icons.ttf
create mode 100644 product-icons/adwaita.json
create mode 100644 product-icons/scalable/ea01.svg
create mode 100644 product-icons/scalable/ea02.svg
create mode 100644 product-icons/scalable/ea03.svg
create mode 100644 product-icons/scalable/ea04.svg
create mode 100644 product-icons/scalable/ea05.svg
create mode 100644 product-icons/scalable/ea06.svg
create mode 100644 product-icons/scalable/ea07.svg
create mode 100644 product-icons/scalable/ea08.svg
create mode 100644 product-icons/scalable/ea09.svg
create mode 100644 product-icons/scalable/ea0a.svg
create mode 100644 product-icons/scalable/ea0b.svg
create mode 100644 product-icons/scalable/ea0c.svg
create mode 100644 product-icons/scalable/ea0d.svg
create mode 100644 product-icons/scalable/eb94.svg
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..2ab6f36
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -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.
diff --git a/README.md b/README.md
index 0e1fb8c..99b3b74 100644
--- a/README.md
+++ b/README.md
@@ -40,11 +40,9 @@ Installing [adw-gtk3](https://github.com/lassekongo83/adw-gtk3) will get you a m
## Contributing
-Requirements: Python 3.
+See [CONTRIBUTING.md](CONTRIBUTING.md).
-cd into `src` and run `build.py` to build the JSON files (if you have npm, `npm run build` is an alias for that). 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.
+