Add enablefont and disablefont icon for kfontinst KCM
ClosedPublic

Authored by guoyunhe on Sep 14 2019, 12:41 PM.

Diff Detail

Repository
R266 Breeze Icons
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 16548
Build 16566: arc lint + arc unit
guoyunhe created this revision.Sep 14 2019, 12:41 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptSep 14 2019, 12:41 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
guoyunhe requested review of this revision.Sep 14 2019, 12:41 PM
guoyunhe edited the summary of this revision. (Show Details)Sep 14 2019, 12:48 PM
guoyunhe added a reviewer: Breeze.

Thanks!

Please create a 16px version as well. Monochrome icons need both sizes.

Please use a more hierarchical name, e.g. "font-enable" and "font-disable", to match the other font icons we have such as "font-size-up" and "font-face"

ndavis requested changes to this revision.Sep 14 2019, 2:14 PM
ndavis added a subscriber: ndavis.

There's a bit too much space around the checkmark.

This revision now requires changes to proceed.Sep 14 2019, 2:14 PM

Please use a more hierarchical name, e.g. "font-enable" and "font-disable", to match the other font icons we have such as "font-size-up" and "font-face"

OK. Then need to update kfontinst, too.

ndavis added a comment.EditedSep 14 2019, 2:16 PM

Oof, all of the font icons that contain an 'A' need to be cleaned up someday. The 'A's aren't even 16px tall in the 22px icons and the line thickness and alignment is all over the place. I guess that's something for another patch. For now, we should maintain consistency with the existing font icons.

guoyunhe updated this revision to Diff 66050.Sep 14 2019, 2:18 PM
guoyunhe edited the summary of this revision. (Show Details)

Rename enablefont and disablefont icons

guoyunhe updated this revision to Diff 66067.EditedSep 14 2019, 5:00 PM

Reduce space between A and marks

guoyunhe updated this revision to Diff 66071.EditedSep 14 2019, 5:25 PM

Add 16px icons for font-enable and font-disable

@ndavis, @broulik, @ngraham, I made some change. Can you have another look?

@ndavis, @broulik, @ngraham, I made some change. Can you have another look?

I just noticed that the "No" symbol is backwards. Once you fix that and the hardcoded colors, this patch will be ready to land.

icons-dark/actions/16/font-disable.svg
12

Hardcoded color

icons-dark/actions/22/font-disable.svg
11

Hardcoded color

icons/actions/16/font-disable.svg
12

Hardcoded color

icons/actions/22/font-disable.svg
11

Hardcoded color

guoyunhe updated this revision to Diff 66077.Sep 14 2019, 5:54 PM

Remove hardcoded colors

Shouldn't the checkmark be green?

GB_2 added a subscriber: GB_2.Sep 14 2019, 6:00 PM

Shouldn't the checkmark be green?

FWIW, both should be black/white. Disabling is not a destructive action like removing.

ndavis added a comment.EditedSep 14 2019, 6:07 PM
In D23942#531337, @GB_2 wrote:

Shouldn't the checkmark be green?

FWIW, both should be black/white. Disabling is not a destructive action like removing.

We use red for disabling as well. Perhaps we need to work on the HIG a bit. One of the problems with only using black and white is that the emblems become harder to notice.

I just followed the email icons' color: check mark is black/white, disable mark is red.

GB_2 accepted this revision.Sep 14 2019, 6:25 PM
This comment was removed by GB_2.

@ndavis it looks strange when I removed the inline style

GB_2 added a comment.Sep 14 2019, 6:40 PM
This comment was removed by GB_2.

I was asked to remove the hard code color like: fill="currentColor" and fill="#da4453". But I see other icons have something like style="fill:currentColor". Can anyone tell me correct way of applying colors?

GB_2 added a comment.Sep 14 2019, 6:57 PM

I was asked to remove the hard code color like: fill="currentColor" and fill="#da4453". But I see other icons have something like style="fill:currentColor". Can anyone tell me correct way of applying colors?

Just fill="currentColor" is correct.

guoyunhe updated this revision to Diff 66080.Sep 14 2019, 6:59 PM

Add inline styles

@GB_2 is it correct now?

GB_2 added a comment.Sep 14 2019, 7:04 PM

@GB_2 is it correct now?

There's still a hardcoded style="fill:#da4453" in the disable icons.

guoyunhe updated this revision to Diff 66083.Sep 14 2019, 7:16 PM

Remove hardcoded colors

Changed to currentColor

GB_2 accepted this revision.Sep 14 2019, 7:23 PM

Now it's good!

@ndavis can you give review? thanks!

I still feel like I'd prefer the checkmark to be green. I also feel like I understand the argument that red isn't the best color to use for disabling something since it isn't destructive. Maybe we should use the orange color for that?

Definitely need clarification in the HIG.

ndavis accepted this revision.Sep 14 2019, 9:38 PM
This revision is now accepted and ready to land.Sep 14 2019, 9:38 PM
This revision was automatically updated to reflect the committed changes.