doc: introduce icon policy documentation #70

Manually merged
jarolrod merged 1 commit from icon-policy-doc into main 2021-11-02 16:51:53 +00:00 AGit
jarolrod commented 2021-10-26 05:58:15 +00:00 (Migrated from github.com)

Moved from https://github.com/bitcoin-core/gui/pull/310

Picking up https://github.com/bitcoin-core/gui/pull/178

This introduces documented policies for how icons should be prepared, optimized, styled, contributed, and attributed within Bitcoin Core. Having guidelines for iconography helps with making applications more consistent and efficient.

document render

Moved from https://github.com/bitcoin-core/gui/pull/310 Picking up https://github.com/bitcoin-core/gui/pull/178 This introduces documented policies for how icons should be prepared, optimized, styled, contributed, and attributed within Bitcoin Core. Having guidelines for iconography helps with making applications more consistent and efficient. [document render](https://github.com/bitcoin-core/gui-qml/blob/23ad199b43e9068d0571eba5965752b03842a7f4/src/qml/doc/icon-policy.md)
jarolrod commented 2021-10-26 17:57:02 +00:00 (Migrated from github.com)

cc @Bosch-0 @GBKS

cc @Bosch-0 @GBKS
Bosch-0 (Migrated from github.com) reviewed 2021-10-27 08:40:12 +00:00
Bosch-0 (Migrated from github.com) left a comment

Could we not have that PNG optimization tool run automatically when an image / icon is added to the repo?

Could we not have that PNG optimization tool run automatically when an image / icon is added to the repo?
promag commented 2021-10-27 08:48:06 +00:00 (Migrated from github.com)

@Bosch-0 where would it run automatically? We don't want non-optimized icons in the source tree so the command would have to run client-side. I think you could configure a pre-commit hook in your git client to do this automatically but maybe not worth the effort.

@Bosch-0 where would it run automatically? We don't want non-optimized icons in the source tree so the command would have to run client-side. I think you could configure a pre-commit hook in your git client to do this automatically but maybe not worth the effort.
promag (Migrated from github.com) reviewed 2021-10-27 09:05:58 +00:00
promag (Migrated from github.com) left a comment

Concept ACK.

Concept ACK.
promag (Migrated from github.com) commented 2021-10-27 09:03:47 +00:00

Do you have an example of limited app support?

Do you have an example of limited app support?
promag (Migrated from github.com) commented 2021-10-27 09:05:45 +00:00

should be ####? And drop :?

should be `####`? And drop `:`?
jarolrod (Migrated from github.com) reviewed 2021-10-27 17:51:00 +00:00
jarolrod (Migrated from github.com) commented 2021-10-27 17:51:00 +00:00

This line was originally written by @Bosch-0

This line was originally written by @Bosch-0
promag (Migrated from github.com) reviewed 2021-10-27 18:04:12 +00:00
promag (Migrated from github.com) commented 2021-10-27 18:04:12 +00:00

I can think of 2 motivations:

  1. From https://doc.qt.io/qt-5/svgrendering.html:

Qt supports the static features of SVG 1.2 Tiny. ECMA scripts and DOM manipulation are currently not supported.

  1. rendering an SVG in a small size might not produce a good-looking icon and so it is easier to have a PNG optimized for that size.
I can think of 2 motivations: 1. From https://doc.qt.io/qt-5/svgrendering.html: > Qt supports the static features of SVG 1.2 Tiny. ECMA scripts and DOM manipulation are currently not supported. 2. rendering an SVG in a small size might not produce a good-looking icon and so it is easier to have a PNG optimized for that size.
jarolrod (Migrated from github.com) reviewed 2021-10-27 23:50:45 +00:00
jarolrod (Migrated from github.com) commented 2021-10-27 23:50:45 +00:00

updated

updated
jarolrod commented 2021-10-27 23:51:33 +00:00 (Migrated from github.com)

Updated from 8a2c366 -> 23ad199

Changes: addressed @promag comment

Updated from 8a2c366 -> 23ad199 Changes: addressed @promag [comment](https://github.com/bitcoin-core/gui-qml/pull/70#discussion_r737261398)
Bosch-0 (Migrated from github.com) reviewed 2021-10-28 02:07:37 +00:00
Bosch-0 (Migrated from github.com) commented 2021-10-28 02:07:37 +00:00

Limited app support may be too harsh, not as widely supported as PNG is probably a better way to put it. JPEG files should also be used over SVGs for images with wider color profiles.

Limited app support may be too harsh, not as widely supported as PNG is probably a better way to put it. JPEG files should also be used over SVGs for images with wider color profiles.
hebasto (Migrated from github.com) reviewed 2021-10-30 07:08:38 +00:00
hebasto (Migrated from github.com) left a comment

Concept ACK.

Concept ACK.
hebasto (Migrated from github.com) commented 2021-10-30 07:07:06 +00:00

... ancillary (alla), ...

I cannot translate it into my native language ((

> ... ancillary (alla), ... I cannot translate it into my native language ((
hebasto (Migrated from github.com) commented 2021-10-30 07:07:56 +00:00

... the file's size

Is this correct from the English Grammar POV?

> ... the file's size Is this correct from the English Grammar POV?
hebasto (Migrated from github.com) commented 2021-10-30 07:04:50 +00:00

In the current state of this repo no icons are from the Bitcoin Icon set, right? Maybe clarify that new added icons should be chosen from that set?

In the current state of this repo no icons are from the Bitcoin Icon set, right? Maybe clarify that _new_ added icons should be chosen from that set?
jarolrod (Migrated from github.com) reviewed 2021-11-01 04:06:45 +00:00
jarolrod (Migrated from github.com) commented 2021-11-01 04:06:45 +00:00

We will be using those Icons. Although there are none yet, they will be added as needed. We know that we will primarily use these icons. I don't see the need to state, as of right now, that "new" icons will be chosen from the set.

We will be using those Icons. Although there are none yet, they will be added as needed. We know that we will primarily use these icons. I don't see the need to state, as of right now, that "new" icons will be chosen from the set.
jarolrod (Migrated from github.com) reviewed 2021-11-01 04:08:36 +00:00
jarolrod (Migrated from github.com) commented 2021-11-01 04:08:36 +00:00
https://en.wikipedia.org/wiki/Ancillary_data
jarolrod (Migrated from github.com) reviewed 2021-11-01 04:11:20 +00:00
jarolrod (Migrated from github.com) commented 2021-11-01 04:11:20 +00:00

maybe this is clearer?:

and text chunks, resulting in a lossless file size reduction.
maybe this is clearer?: ```suggestion and text chunks, resulting in a lossless file size reduction. ```
shaavan (Migrated from github.com) reviewed 2021-11-01 14:59:48 +00:00
shaavan (Migrated from github.com) commented 2021-11-01 14:59:48 +00:00

The phrase “limited application support.” sounds a little confusing and might be misleading. For example, one might think, which application are we talking about here? Is it “bitcoin core” or some other application that works on PNG, SVG, and other formats of images.

I think a better framing of this sentence would be:
“They are not used in production because they are not widely supported (compared to PNGs).”

In this framing, the reader will clearly understand that we are talking about format support in general.

The phrase “limited application support.” sounds a little confusing and might be misleading. For example, one might think, which application are we talking about here? Is it “bitcoin core” or some other application that works on PNG, SVG, and other formats of images. I think a better framing of this sentence would be: “They are not used in production because they are not widely supported (compared to PNGs).” In this framing, the reader will clearly understand that we are talking about format support in general.
shaavan (Migrated from github.com) reviewed 2021-11-01 15:03:57 +00:00
shaavan (Migrated from github.com) left a comment

Concept ACK

The icon policy documentation is quite nicely arranged. The details in the document are pretty well explained without being overwhelming. This writing style fulfills the purpose of the documentation as it would be used chiefly by newcomers in the bitcoin core contributing ecosystem.

I have one change to suggest, which I have mentioned here. Other than this and other minor changes suggested by other reviewers, I think this documentation is perfect!

Concept ACK The icon policy documentation is quite nicely arranged. The details in the document are pretty well explained without being overwhelming. This writing style fulfills the purpose of the documentation as it would be used chiefly by newcomers in the bitcoin core contributing ecosystem. I have one change to suggest, which I have mentioned [here](https://github.com/bitcoin-core/gui-qml/pull/70#discussion_r740280447). Other than this and other minor changes suggested by other reviewers, I think this documentation is perfect!
jarolrod (Migrated from github.com) reviewed 2021-11-01 21:33:51 +00:00
jarolrod (Migrated from github.com) commented 2021-11-01 21:33:51 +00:00

This line is just a quick explanation as to why we are not using SVG files as our production files. The reason for this is because of limited application support; this could refer to x, y, or z reason.

In reality, we are/will be using SVG as production files because that is what designers have recommended. Getting into the particularities here, or what the reality of support for SVG files really is across all applications doesn't matter.

@shaavan: Changing from "limited application support" to "not widely supported" doesn't remove the inherent reference to 'outside' projects

I think the line is fine as is

This line is just a quick explanation as to why we are not using SVG files as our production files. The reason for this is because of limited application support; this could refer to x, y, or z reason. In reality, we are/will be using SVG as production files because that is what designers have recommended. Getting into the particularities here, or what the reality of support for SVG files really is across all applications doesn't matter. @shaavan: Changing from "limited application support" to "not widely supported" doesn't remove the inherent reference to 'outside' projects I think the line is fine as is
jarolrod commented 2021-11-01 21:51:51 +00:00 (Migrated from github.com)

Updated from 23ad199 -> 68efd37 (pr70.02 -> pr70.03, diff)

Changes:

Updated from 23ad199 -> 68efd37 ([pr70.02](https://github.com/jarolrod/gui-qml/tree/pr70.02) -> [pr70.03](https://github.com/jarolrod/gui-qml/tree/pr70.03), [diff](https://github.com/jarolrod/gui-qml/compare/pr70.02..pr70.03)) Changes: - Correct grammar on line talking about file size reduction: https://github.com/bitcoin-core/gui-qml/pull/70#discussion_r739946054 - s/"ancillary (alla)"/"ancillary data": https://github.com/bitcoin-core/gui-qml/pull/70#discussion_r739619385 - Update link to copyright file from pointing to the old gui repo to this (qml-gui) repo
jarolrod (Migrated from github.com) reviewed 2021-11-01 21:57:04 +00:00
jarolrod (Migrated from github.com) commented 2021-11-01 21:57:04 +00:00

i've changed the text here from "ancillary (alla)" to "ancillary data"

i've changed the text here from "ancillary (alla)" to "ancillary data"
Bosch-0 commented 2021-11-02 01:49:22 +00:00 (Migrated from github.com)

ACK from me :)

ACK from me :)
hebasto (Migrated from github.com) approved these changes 2021-11-02 06:50:20 +00:00
hebasto (Migrated from github.com) left a comment

ACK 68efd37c37359ee5fb927deab96eb2964875dfd3

ACK 68efd37c37359ee5fb927deab96eb2964875dfd3
hebasto (Migrated from github.com) commented 2021-11-02 06:49:39 +00:00
[contrib/debian/copyright](../../../contrib/debian/copyright) file.
```suggestion [contrib/debian/copyright](../../../contrib/debian/copyright) file. ```
shaavan (Migrated from github.com) approved these changes 2021-11-02 13:55:46 +00:00
shaavan (Migrated from github.com) left a comment

ACK 68efd37c37359ee5fb927deab96eb2964875dfd3

Thanks again for this fantastic work, @jarolrod!

ACK 68efd37c37359ee5fb927deab96eb2964875dfd3 Thanks again for this fantastic work, @jarolrod!
shaavan (Migrated from github.com) reviewed 2021-11-02 14:06:28 +00:00
shaavan (Migrated from github.com) commented 2021-11-02 14:06:28 +00:00

Changing from "limited application support" to "not widely supported" doesn't remove the inherent reference to 'outside' projects

I can see what you are talking about. I guess the phrase "limited application support" is not as confusing as I first perceived it to be :)

> Changing from "limited application support" to "not widely supported" doesn't remove the inherent reference to 'outside' projects I can see what you are talking about. I guess the phrase "limited application support" is not as confusing as I first perceived it to be :)
promag (Migrated from github.com) reviewed 2021-11-02 14:08:58 +00:00
promag (Migrated from github.com) left a comment

ACK 68efd37c37359ee5fb927deab96eb2964875dfd3.

+1 to @hebasto comment though.

ACK 68efd37c37359ee5fb927deab96eb2964875dfd3. +1 to @hebasto comment though.
jarolrod commented 2021-11-02 16:37:37 +00:00 (Migrated from github.com)

updated from 68efd37 -> 7335bdd (pr70.03 -> pr70.04 ,diff)

Changes: addressed @hebasto comment

updated from 68efd37 -> 7335bdd ([pr70.03](https://github.com/jarolrod/gui-qml/tree/pr70.03) -> [pr70.04](https://github.com/jarolrod/gui-qml/tree/pr70.04) ,[diff](https://github.com/jarolrod/gui-qml/compare/pr70.03..pr70.04)) Changes: addressed @hebasto [comment](https://github.com/bitcoin-core/gui-qml/pull/70#discussion_r740758790)
jarolrod (Migrated from github.com) reviewed 2021-11-02 16:37:45 +00:00
jarolrod (Migrated from github.com) commented 2021-11-02 16:37:45 +00:00

thanks, updated

thanks, updated
hebasto (Migrated from github.com) approved these changes 2021-11-02 16:42:00 +00:00
hebasto (Migrated from github.com) left a comment

re-ACK 7335bdd22b

re-ACK 7335bdd22b0c7a0cbc040a4df373c67fb7e776d6
Sign in to join this conversation.
No description provided.