forked from qt-creator/qt-creator
Cleanup of Theming
A theme is supposed to provide colors, flags and images. This change removes functions from Theme which do not just return simple data. Also ManhattanStyle and Theme get separated a bit. Change-Id: I2fab26ee38b858fefb55920eb219f84abcfaac18 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -224,9 +224,13 @@ ProFileEditorFactory::ProFileEditorFactory()
|
||||
addHoverHandler(new ProFileHoverHandler(keywords));
|
||||
setSyntaxHighlighterCreator([keywords]() { return new ProFileHighlighter(keywords); });
|
||||
|
||||
Core::FileIconProvider::registerIconOverlayForSuffix(creatorTheme()->iconOverlay(Theme::ProMimetype).toLatin1().data(), "pro");
|
||||
Core::FileIconProvider::registerIconOverlayForSuffix(creatorTheme()->iconOverlay(Theme::PriMimetype).toLatin1().data(), "pri");
|
||||
Core::FileIconProvider::registerIconOverlayForSuffix(creatorTheme()->iconOverlay(Theme::PrfMimetype).toLatin1().data(), "prf");
|
||||
const QString defaultOverlay = QLatin1String(QtSupport::Constants::ICON_QT_PROJECT);
|
||||
Core::FileIconProvider::registerIconOverlayForSuffix(
|
||||
creatorTheme()->imageFile(Theme::IconOverlayPro, defaultOverlay).toLatin1().data(), "pro");
|
||||
Core::FileIconProvider::registerIconOverlayForSuffix(
|
||||
creatorTheme()->imageFile(Theme::IconOverlayPri, defaultOverlay).toLatin1().data(), "pri");
|
||||
Core::FileIconProvider::registerIconOverlayForSuffix(
|
||||
creatorTheme()->imageFile(Theme::IconOverlayPrf, defaultOverlay).toLatin1().data(), "prf");
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user