Re: Dark Mode

by byDMA » Sun Jun 09, 2024 10:21 pm

I think this is the place where the icons for menus and the toolbar are scaled compulsorily. Why? I suspect because this is an "unknown" source.

ResourceAction.java[/code]

https://sourceforge.net/p/sweethome3d/c ... .java#l130

Code: Select all

  String smallIcon = getOptionalString(preferences, resourceClass, propertyPrefix + SMALL_ICON, false);
    if (smallIcon != null) {
      putValue(SMALL_ICON, SwingTools.getScaledImageIcon(resourceClass.getResource(smallIcon)));
    }

    String toolBarIcon = getOptionalString(preferences, resourceClass, propertyPrefix + TOOL_BAR_ICON, false);
    if (toolBarIcon != null) {
      putValue(TOOL_BAR_ICON, SwingTools.getScaledImageIcon(resourceClass.getResource(toolBarIcon)));
    }