Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gtk gtk
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,476
    • Issues 1,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 246
    • Merge requests 246
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • gtkgtk
  • Issues
  • #2217
Closed
Open
Created Oct 22, 2019 by Jan Blackquill@uhhadd

-gtk-icon-source: -gtk-recolor(url('icon-symbolic')); seems buggy with symbolic colours

Steps to reproduce

  1. Create a widget that takes the -gtk-icon-source node (spinner, checkbutton)
  2. Apply -gtk-icon-source: -gtk-recolour(url('$ICON-symbolic.svg')); for any $ICON that uses one of the three symbolic colour classes (success, error, warning)
  3. Observe the colours of the icon

Current behavior

  • The icon's warning/success/error colours seem to change without any rhythm or rhyme (i.e. triggering the hover state twice on checkbuttons results in two different appearances for each time)

Expected outcome

  • The icon's warning/success/error colours should reflect the warning/success/error palette

Version information

GTK: 3.24.12 Distro: openSUSE Tumbleweed

Additional information

image Three checkbuttons with the same state and same CSS properties (-gtk-icon-source: -gtk-recolor(url('microphone-sensitivity-muted-symbolic.svg'));)

The icon used in the screenshot:

microphone-sensitivity-muted-symbolic.svg

The test script producing the window: testwin.py

Illustration of how inconsistent the rendering is (toggling LtR <-> RtL in GTK inspector) oh_come_on

Edited Oct 29, 2019 by Timm Bäder
Assignee
Assign to
Time tracking