Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suplement Missing Symbolic and Full Color Icons #4179

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

ochi12
Copy link
Contributor

@ochi12 ochi12 commented Dec 8, 2024

I notice that some icons are falling back to hicolor in some apps like Settings and Nautilus.
This PR will either add symlinks or make the icons from scratch.

Task:

please report if I missed some icons

  • added all missing icons in gnome-control-center
  • added missing icon in nautilus
  • added missing icon in Text Editor
  • added missing icon in gnome-snapshot
  • Yarufy sysprof desktop icon. Fullcolor and symbolic
  • added missing icons for sysprof
  • Added missing icons for Epiphany

If you see missing or incorrect icon please report below.

…lock-symbolic.svg to suppliment icon falling back to hi color on gnome-control-center under 'Privacy & security'/'Screen Lock'
@ochi12 ochi12 marked this pull request as draft December 8, 2024 08:22
…-workgroup-symbolic.svg to suppliment icon falling back to hicolor on gnome-control-center under 'Privacy & security'/'Connectivity'
@ochi12
Copy link
Contributor Author

ochi12 commented Dec 8, 2024

for nautilus emblem icons:

before adwaita fallback after
Screenshot From 2024-12-08 23-34-10 image

Why didn't use the original emblem icons?
Answer: Current implementation of Gnome Files for emblem boxes uses symbolic icons. see nautilus.gresource.xml
Answer2: forced to use plain approach since can't use color properly because of .dim-label.

Question: is there any way to color a svg that doesn't obey externally applied filters? if yes then I can rework the icons to be colored?

Question2: Should I remove the rendered icons under non scalable context since Gnome files now uses svg for its emblem boxes?

@AbuShawarib
Copy link

Loading spinner is from libadwaita and is drawn manually in software: https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.Spinner.html

@ochi12
Copy link
Contributor Author

ochi12 commented Dec 9, 2024

Loading spinner is from libadwaita and is drawn manually in software: https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.Spinner.html

I dug deeper and found out that gnome shell is also doomed to used AdwSpinner.
What does this mean to your spinner implementation @Muqtxdir

…ilus.list. Linked nautilus-file-chooser-options-symbolic.svg -> nautilus-search-filters-symbolic.svg
@ochi12
Copy link
Contributor Author

ochi12 commented Dec 9, 2024

last missing icon for Nautilus added.
image

@muqtadir-MM
Copy link

I dug deeper and found out that gnome shell is also doomed to used AdwSpinner.
What does this mean to your spinner implementation @Muqtxdir

hi, will check for possible approaches to override the default AdwSpinner when yaru is the applied theme

@ochi12
Copy link
Contributor Author

ochi12 commented Dec 9, 2024

hi, will check for possible approaches to override the default AdwSpinner when yaru is the applied theme

i looked upon the source code of AdwSpinner and AdwSpinnerPaintable and the spinner wheel uses GSK,
I saw the snippet for the arc and the circle used

  AdwSpinnerPaintable *self = ADW_SPINNER_PAINTABLE (paintable);
  float radius, line_width;
  GdkRGBA color;
  GskPathBuilder *builder; 
  GskPath *circle_path, *arc_path;  -> here
  GskStroke *stroke;
  double progress;
  float base_angle, start_angle, end_angle, length;
  GskPathPoint start_point, end_point;
  GskPathMeasure *measure;

@ochi12 ochi12 changed the title Suplement Missing Symbolic Icons Suplement Missing Symbolic and Full Color Icons Dec 9, 2024
@AbuShawarib
Copy link

Loading spinner is from libadwaita and is drawn manually in software: https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.Spinner.html

I dug deeper and found out that gnome shell is also doomed to used AdwSpinner. What does this mean to your spinner implementation @Muqtxdir

GNOME shell doesn't depend on libadwaita and has its own spinner.

@ochi12
Copy link
Contributor Author

ochi12 commented Dec 10, 2024

GNOME shell doesn't depend on libadwaita and has its own spinner.

I thought I was just trippin but here I found their discussion
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3565

@ochi12
Copy link
Contributor Author

ochi12 commented Dec 10, 2024

Yarufied Sysprof fullcolor and symbolic desktop icon

symlink for the symbolic icon
image

@ochi12
Copy link
Contributor Author

ochi12 commented Dec 11, 2024

hi, will check for possible approaches to override the default AdwSpinner when yaru is the applied theme

@muqtadir-MM any update on this?

@AbuShawarib
Copy link

GNOME shell doesn't depend on libadwaita and has its own spinner.

I thought I was just trippin but here I found their discussion https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3565

Yes, this gnome shell implementing their own version of a spinner that looks similar to AdwSpinner but it is using different code entirely.

@ochi12
Copy link
Contributor Author

ochi12 commented Dec 13, 2024

finally found out how to color the svg emblems of nautilus
image

@Muqtxdir can you verify if this css entry is correct?

#NautilusViewCell box.dim-label {
	--dim-opacity: 1;
	-gtk-icon-palette: warning rgb(286, 83, 32), success rgb(118, 37, 114), error rgb(199,22,43);
}

@Feichtmeier
Copy link
Member

finally found out how to color the svg emblems of nautilus image

@Muqtxdir can you verify if this css entry is correct?

#NautilusViewCell box.dim-label {
	--dim-opacity: 1;
	-gtk-icon-palette: warning rgb(286, 83, 32), success rgb(118, 37, 114), error rgb(199,22,43);
}

Theming Nautilus was always a bit of trial and error and black magic. If this works then he's correct I would say :)

@Muqtxdir
Copy link
Member

hi,

The problem with overriding specific app's custom styling on libadwaita+gtk4 apps is it's not exposed and can only be achieved if it's done through user space (such as under .config dir in home path)

@ochi12
Copy link
Contributor Author

ochi12 commented Dec 16, 2024

@Muqtxdir should I consider some missing icons in Epiphany?

@Muqtxdir
Copy link
Member

Hi, sure go for it 🙂

@ochi12
Copy link
Contributor Author

ochi12 commented Dec 16, 2024

hi,

The problem with overriding specific app's custom styling on libadwaita+gtk4 apps is it's not exposed and can only be achieved if it's done through user space (such as under .config dir in home path)

yeah I just tested it by building the deb file it doesnt work. It could have been a great solution

@ochi12 ochi12 marked this pull request as ready for review December 17, 2024 09:36
@Muqtxdir Muqtxdir requested review from Muqtxdir and Jupi007 December 18, 2024 16:23
Copy link
Member

@Jupi007 Jupi007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ochi12 Did you run the script to generate symlinks from lists?

@ochi12
Copy link
Contributor Author

ochi12 commented Dec 19, 2024

@ochi12 Did you run the script to generate symlinks from lists?

yes

Copy link
Member

@Jupi007 Jupi007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Thanks a lot @ochi12 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants