diff --git a/modules/foleys_gui_magic/Layout/foleys_Stylesheet.cpp b/modules/foleys_gui_magic/Layout/foleys_Stylesheet.cpp index aacd6ae0..1287e659 100644 --- a/modules/foleys_gui_magic/Layout/foleys_Stylesheet.cpp +++ b/modules/foleys_gui_magic/Layout/foleys_Stylesheet.cpp @@ -222,6 +222,19 @@ juce::var Stylesheet::getStyleProperty (const juce::Identifier& name, const juce } } + // Check type defaults even if no class is assigned + if (inherit) + { + auto typeNode = currentStyle.getChildWithName (IDs::types).getChildWithName (node.getType()); + if (typeNode.isValid() && typeNode.hasProperty (name)) + { + if (definedHere) + *definedHere = typeNode; + + return typeNode.getProperty (name); + } + } + auto parent = node.getParent(); if (parent.isValid() && parent.getType() != IDs::magic) return getStyleProperty (name, parent, false, definedHere);