public String getThemeSetting(String key, String device) {
    UnicodeProperties typeSettingsProperties = getTypeSettingsProperties();

    String value =
        typeSettingsProperties.getProperty(ThemeSettingImpl.namespaceProperty(device, key));

    if (value != null) {
      return value;
    }

    try {
      LayoutSet layoutSet = getLayoutSet();

      value = layoutSet.getThemeSetting(key, device);
    } catch (Exception e) {
    }

    return value;
  }
Ejemplo n.º 2
0
  @Override
  public String getDefaultThemeSetting(String key, String device, boolean inheritLookAndFeel) {

    if (!inheritLookAndFeel) {
      try {
        Theme theme = getTheme(device);

        return theme.getSetting(key);
      } catch (Exception e) {
      }
    }

    try {
      LayoutSet layoutSet = getLayoutSet();

      return layoutSet.getThemeSetting(key, device);
    } catch (Exception e) {
    }

    return StringPool.BLANK;
  }