diff --git a/share/qtcreator/themes/dark.creatortheme b/share/qtcreator/themes/dark.creatortheme index c60e04cbda5..0935680bde8 100644 --- a/share/qtcreator/themes/dark.creatortheme +++ b/share/qtcreator/themes/dark.creatortheme @@ -71,6 +71,15 @@ IconsModeDebugActiveColor=ff99aaef IconsModeProjetcsActiveColor=ff80c342 IconsModeAnalyzeActiveColor=ff43adee IconsModeHelpActiveColor=fff4be04 +IconsCodeModelKeywordColor=ffaaaaaa +IconsCodeModelClassColor=ffc0b550 +IconsCodeModelStructColor=ff53b053 +IconsCodeModelFunctionColor=ffd34373 +IconsCodeModelVariableColor=ff2bbbcc +IconsCodeModelEnumColor=ffc0b550 +IconsCodeModelMacroColor=ff477ba0 +IconsCodeModelOverlayBackgroundColor=88000000 +IconsCodeModelOverlayForegroundColor=ffdcdcdc InfoBarBackground=ff505000 InfoBarText=text MenuBarEmptyAreaBackgroundColor=shadowBackground diff --git a/share/qtcreator/themes/default.creatortheme b/share/qtcreator/themes/default.creatortheme index 5a688c7d99d..690f4407d72 100644 --- a/share/qtcreator/themes/default.creatortheme +++ b/share/qtcreator/themes/default.creatortheme @@ -65,6 +65,15 @@ IconsModeDebugActiveColor=ffffffff IconsModeProjetcsActiveColor=ffffffff IconsModeAnalyzeActiveColor=ffffffff IconsModeHelpActiveColor=ffffffff +IconsCodeModelKeywordColor=ff777777 +IconsCodeModelClassColor=ffc0b550 +IconsCodeModelStructColor=ff53b053 +IconsCodeModelFunctionColor=fff36393 +IconsCodeModelVariableColor=ff2bbbcc +IconsCodeModelEnumColor=ffc0b550 +IconsCodeModelMacroColor=ff476ba0 +IconsCodeModelOverlayBackgroundColor=70ffffff +IconsCodeModelOverlayForegroundColor=ff232425 InfoBarBackground=ffffffe1 InfoBarText=ff000000 MenuBarEmptyAreaBackgroundColor=ffff0000 diff --git a/share/qtcreator/themes/defaultflat.creatortheme b/share/qtcreator/themes/defaultflat.creatortheme index b151c37aba4..a3bc13a8204 100644 --- a/share/qtcreator/themes/defaultflat.creatortheme +++ b/share/qtcreator/themes/defaultflat.creatortheme @@ -75,6 +75,15 @@ IconsModeDebugActiveColor=ff99aaef IconsModeProjetcsActiveColor=ff80c342 IconsModeAnalyzeActiveColor=ff43adee IconsModeHelpActiveColor=fff4be04 +IconsCodeModelKeywordColor=ff777777 +IconsCodeModelClassColor=ffc0b550 +IconsCodeModelStructColor=ff53b053 +IconsCodeModelFunctionColor=ffd34373 +IconsCodeModelVariableColor=ff2bbbcc +IconsCodeModelEnumColor=ffc0b550 +IconsCodeModelMacroColor=ff476ba0 +IconsCodeModelOverlayBackgroundColor=70ffffff +IconsCodeModelOverlayForegroundColor=ff232425 InfoBarBackground=ffffffe1 InfoBarText=text MenuBarEmptyAreaBackgroundColor=shadowBackground diff --git a/src/libs/cplusplus/Icons.cpp b/src/libs/cplusplus/Icons.cpp index 539516f4881..7a539c67eb8 100644 --- a/src/libs/cplusplus/Icons.cpp +++ b/src/libs/cplusplus/Icons.cpp @@ -30,6 +30,8 @@ #include #include +#include + using namespace CPlusPlus; using CPlusPlus::Icons; @@ -116,97 +118,177 @@ Icons::IconType Icons::iconTypeForSymbol(const Symbol *symbol) QIcon Icons::iconForType(IconType type) { + using namespace Utils; + + static const IconMaskAndColor classRelationIcon { + QLatin1String(":/codemodel/images/classrelation.png"), Theme::IconsCodeModelOverlayForegroundColor}; + static const IconMaskAndColor classRelationBackgroundIcon { + QLatin1String(":/codemodel/images/classrelationbackground.png"), Theme::IconsCodeModelOverlayBackgroundColor}; + static const IconMaskAndColor classMemberFunctionIcon { + QLatin1String(":/codemodel/images/classmemberfunction.png"), Theme::IconsCodeModelFunctionColor}; + static const IconMaskAndColor classMemberVariableIcon { + QLatin1String(":/codemodel/images/classmembervariable.png"), Theme::IconsCodeModelVariableColor}; + static const IconMaskAndColor functionIcon { + QLatin1String(":/codemodel/images/member.png"), Theme::IconsCodeModelFunctionColor}; + static const IconMaskAndColor variableIcon { + QLatin1String(":/codemodel/images/member.png"), Theme::IconsCodeModelVariableColor}; + static const IconMaskAndColor signalIcon { + QLatin1String(":/codemodel/images/signal.png"), Theme::IconsCodeModelFunctionColor}; + static const IconMaskAndColor slotIcon { + QLatin1String(":/codemodel/images/slot.png"), Theme::IconsCodeModelFunctionColor}; + static const IconMaskAndColor protectedIcon { + QLatin1String(":/codemodel/images/protected.png"), Theme::IconsCodeModelOverlayForegroundColor}; + static const IconMaskAndColor protectedBackgroundIcon { + QLatin1String(":/codemodel/images/protectedbackground.png"), Theme::IconsCodeModelOverlayBackgroundColor}; + static const IconMaskAndColor privateIcon { + QLatin1String(":/codemodel/images/private.png"), Theme::IconsCodeModelOverlayForegroundColor}; + static const IconMaskAndColor privateBackgroundIcon { + QLatin1String(":/codemodel/images/privatebackground.png"), Theme::IconsCodeModelOverlayBackgroundColor}; + static const IconMaskAndColor staticIcon { + QLatin1String(":/codemodel/images/static.png"), Theme::IconsCodeModelOverlayForegroundColor}; + static const IconMaskAndColor staticBackgroundIcon { + QLatin1String(":/codemodel/images/staticbackground.png"), Theme::IconsCodeModelOverlayBackgroundColor}; + switch (type) { case ClassIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/class.png")); + const static QIcon icon(Icon({ + classRelationBackgroundIcon, classRelationIcon, + {QLatin1String(":/codemodel/images/classparent.png"), Theme::IconsCodeModelClassColor}, + classMemberFunctionIcon, classMemberVariableIcon + }, Icon::Tint).icon()); return icon; } case StructIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/struct.png")); + const static QIcon icon(Icon({ + classRelationBackgroundIcon, classRelationIcon, + {QLatin1String(":/codemodel/images/classparent.png"), Theme::IconsCodeModelStructColor}, + classMemberFunctionIcon, classMemberVariableIcon + }, Icon::Tint).icon()); return icon; } case EnumIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/enum.png")); + const static QIcon icon(Icon({ + {QLatin1String(":/codemodel/images/enum.png"), Theme::IconsCodeModelEnumColor} + }, Icon::Tint).icon()); return icon; } case EnumeratorIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/enumerator.png")); + const static QIcon icon(Icon({ + {QLatin1String(":/codemodel/images/enumerator.png"), Theme::IconsCodeModelEnumColor} + }, Icon::Tint).icon()); return icon; } case FuncPublicIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/func.png")); + const static QIcon icon(Icon({ + functionIcon}, Icon::Tint).icon()); return icon; } case FuncProtectedIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/func_prot.png")); + const static QIcon icon(Icon({ + functionIcon, protectedBackgroundIcon, protectedIcon + }, Icon::Tint).icon()); return icon; } case FuncPrivateIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/func_priv.png")); + const static QIcon icon(Icon({ + functionIcon, privateBackgroundIcon, privateIcon + }, Icon::Tint).icon()); return icon; } case FuncPublicStaticIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/func_st.png")); + const static QIcon icon(Icon({ + functionIcon, staticBackgroundIcon, staticIcon + }, Icon::Tint).icon()); return icon; } case FuncProtectedStaticIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/func_prot_st.png")); + const static QIcon icon(Icon({ + functionIcon, staticBackgroundIcon, staticIcon, protectedBackgroundIcon, protectedIcon + }, Icon::Tint).icon()); return icon; } case FuncPrivateStaticIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/func_priv_st.png")); + const static QIcon icon(Icon({ + functionIcon, staticBackgroundIcon, staticIcon, privateBackgroundIcon, privateIcon + }, Icon::Tint).icon()); return icon; } case NamespaceIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/namespace.png")); + const static QIcon icon(Icon({ + {QLatin1String(":/codemodel/images/namespace.png"), Theme::IconsCodeModelKeywordColor} + }, Icon::Tint).icon()); return icon; } case VarPublicIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/var.png")); + const static QIcon icon(Icon({ + variableIcon + }, Icon::Tint).icon()); return icon; } case VarProtectedIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/var_prot.png")); + const static QIcon icon(Icon({ + variableIcon, protectedBackgroundIcon, protectedIcon + }, Icon::Tint).icon()); return icon; } case VarPrivateIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/var_priv.png")); + const static QIcon icon(Icon({ + variableIcon, privateBackgroundIcon, privateIcon + }, Icon::Tint).icon()); return icon; } case VarPublicStaticIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/var_st.png")); + const static QIcon icon(Icon({ + variableIcon, staticBackgroundIcon, staticIcon + }, Icon::Tint).icon()); return icon; } case VarProtectedStaticIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/var_prot_st.png")); + const static QIcon icon(Icon({ + variableIcon, staticBackgroundIcon, staticIcon, protectedBackgroundIcon, protectedIcon + }, Icon::Tint).icon()); return icon; } case VarPrivateStaticIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/var_priv_st.png")); + const static QIcon icon(Icon({ + variableIcon, staticBackgroundIcon, staticIcon, privateBackgroundIcon, privateIcon + }, Icon::Tint).icon()); return icon; } case SignalIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/signal.png")); + const static QIcon icon(Icon({ + signalIcon + }, Icon::Tint).icon()); return icon; } case SlotPublicIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/slot.png")); + const static QIcon icon(Icon({ + slotIcon + }, Icon::Tint).icon()); return icon; } case SlotProtectedIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/slot_prot.png")); + const static QIcon icon(Icon({ + slotIcon, protectedBackgroundIcon, protectedIcon + }, Icon::Tint).icon()); return icon; } case SlotPrivateIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/slot_priv.png")); + const static QIcon icon(Icon({ + slotIcon, privateBackgroundIcon, privateIcon + }, Icon::Tint).icon()); return icon; } case KeywordIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/keyword.png")); + const static QIcon icon(Icon({ + {QLatin1String(":/codemodel/images/keyword.png"), Theme::IconsCodeModelKeywordColor} + }, Icon::Tint).icon()); return icon; } case MacroIconType: { - const static QIcon icon(QLatin1String(":/codemodel/images/macro.png")); + const static QIcon icon(Icon({ + {QLatin1String(":/codemodel/images/macro.png"), Theme::IconsCodeModelMacroColor} + }, Icon::Tint).icon()); return icon; } default: diff --git a/src/libs/cplusplus/cplusplus.qrc b/src/libs/cplusplus/cplusplus.qrc index 9b5812d83c1..d0135fdee80 100644 --- a/src/libs/cplusplus/cplusplus.qrc +++ b/src/libs/cplusplus/cplusplus.qrc @@ -1,27 +1,42 @@ - images/class.png - images/struct.png images/enum.png + images/enum@2x.png images/enumerator.png - images/func.png - images/func_priv.png - images/func_prot.png + images/enumerator@2x.png images/keyword.png + images/keyword@2x.png images/macro.png + images/macro@2x.png images/namespace.png + images/namespace@2x.png images/signal.png + images/signal@2x.png images/slot.png - images/slot_priv.png - images/slot_prot.png - images/var.png - images/var_priv.png - images/var_prot.png - images/func_priv_st.png - images/func_prot_st.png - images/func_st.png - images/var_priv_st.png - images/var_prot_st.png - images/var_st.png + images/slot@2x.png + images/member.png + images/member@2x.png + images/private.png + images/private@2x.png + images/privatebackground.png + images/privatebackground@2x.png + images/protected.png + images/protected@2x.png + images/protectedbackground.png + images/protectedbackground@2x.png + images/static.png + images/static@2x.png + images/staticbackground.png + images/staticbackground@2x.png + images/classmemberfunction.png + images/classmemberfunction@2x.png + images/classmembervariable.png + images/classmembervariable@2x.png + images/classparent.png + images/classparent@2x.png + images/classrelation.png + images/classrelation@2x.png + images/classrelationbackground.png + images/classrelationbackground@2x.png diff --git a/src/libs/cplusplus/images/class.png b/src/libs/cplusplus/images/class.png deleted file mode 100644 index 88432d2cb10..00000000000 Binary files a/src/libs/cplusplus/images/class.png and /dev/null differ diff --git a/src/libs/cplusplus/images/classmemberfunction.png b/src/libs/cplusplus/images/classmemberfunction.png new file mode 100644 index 00000000000..f97d706e7fa Binary files /dev/null and b/src/libs/cplusplus/images/classmemberfunction.png differ diff --git a/src/libs/cplusplus/images/classmemberfunction@2x.png b/src/libs/cplusplus/images/classmemberfunction@2x.png new file mode 100644 index 00000000000..f30e61336b5 Binary files /dev/null and b/src/libs/cplusplus/images/classmemberfunction@2x.png differ diff --git a/src/libs/cplusplus/images/classmembervariable.png b/src/libs/cplusplus/images/classmembervariable.png new file mode 100644 index 00000000000..82f8024b2eb Binary files /dev/null and b/src/libs/cplusplus/images/classmembervariable.png differ diff --git a/src/libs/cplusplus/images/classmembervariable@2x.png b/src/libs/cplusplus/images/classmembervariable@2x.png new file mode 100644 index 00000000000..6f426c3a411 Binary files /dev/null and b/src/libs/cplusplus/images/classmembervariable@2x.png differ diff --git a/src/libs/cplusplus/images/classparent.png b/src/libs/cplusplus/images/classparent.png new file mode 100644 index 00000000000..19bb9528428 Binary files /dev/null and b/src/libs/cplusplus/images/classparent.png differ diff --git a/src/libs/cplusplus/images/classparent@2x.png b/src/libs/cplusplus/images/classparent@2x.png new file mode 100644 index 00000000000..5ae4e368906 Binary files /dev/null and b/src/libs/cplusplus/images/classparent@2x.png differ diff --git a/src/libs/cplusplus/images/classrelation.png b/src/libs/cplusplus/images/classrelation.png new file mode 100644 index 00000000000..acf3c8e2690 Binary files /dev/null and b/src/libs/cplusplus/images/classrelation.png differ diff --git a/src/libs/cplusplus/images/classrelation@2x.png b/src/libs/cplusplus/images/classrelation@2x.png new file mode 100644 index 00000000000..6da54dd223e Binary files /dev/null and b/src/libs/cplusplus/images/classrelation@2x.png differ diff --git a/src/libs/cplusplus/images/classrelationbackground.png b/src/libs/cplusplus/images/classrelationbackground.png new file mode 100644 index 00000000000..601c8b33211 Binary files /dev/null and b/src/libs/cplusplus/images/classrelationbackground.png differ diff --git a/src/libs/cplusplus/images/classrelationbackground@2x.png b/src/libs/cplusplus/images/classrelationbackground@2x.png new file mode 100644 index 00000000000..530e3d4c1e2 Binary files /dev/null and b/src/libs/cplusplus/images/classrelationbackground@2x.png differ diff --git a/src/libs/cplusplus/images/enum.png b/src/libs/cplusplus/images/enum.png index 42a9e83bc76..c7698463704 100644 Binary files a/src/libs/cplusplus/images/enum.png and b/src/libs/cplusplus/images/enum.png differ diff --git a/src/libs/cplusplus/images/enum@2x.png b/src/libs/cplusplus/images/enum@2x.png new file mode 100644 index 00000000000..562ac461d30 Binary files /dev/null and b/src/libs/cplusplus/images/enum@2x.png differ diff --git a/src/libs/cplusplus/images/enumerator.png b/src/libs/cplusplus/images/enumerator.png index 25fc49c6598..292f387ff54 100644 Binary files a/src/libs/cplusplus/images/enumerator.png and b/src/libs/cplusplus/images/enumerator.png differ diff --git a/src/libs/cplusplus/images/enumerator@2x.png b/src/libs/cplusplus/images/enumerator@2x.png new file mode 100644 index 00000000000..705e86be9e8 Binary files /dev/null and b/src/libs/cplusplus/images/enumerator@2x.png differ diff --git a/src/libs/cplusplus/images/func.png b/src/libs/cplusplus/images/func.png deleted file mode 100644 index e515e76e61f..00000000000 Binary files a/src/libs/cplusplus/images/func.png and /dev/null differ diff --git a/src/libs/cplusplus/images/func_priv.png b/src/libs/cplusplus/images/func_priv.png deleted file mode 100644 index 49dda7dfea0..00000000000 Binary files a/src/libs/cplusplus/images/func_priv.png and /dev/null differ diff --git a/src/libs/cplusplus/images/func_priv_st.png b/src/libs/cplusplus/images/func_priv_st.png deleted file mode 100644 index 1d6fa2da795..00000000000 Binary files a/src/libs/cplusplus/images/func_priv_st.png and /dev/null differ diff --git a/src/libs/cplusplus/images/func_prot.png b/src/libs/cplusplus/images/func_prot.png deleted file mode 100644 index f8add65e073..00000000000 Binary files a/src/libs/cplusplus/images/func_prot.png and /dev/null differ diff --git a/src/libs/cplusplus/images/func_prot_st.png b/src/libs/cplusplus/images/func_prot_st.png deleted file mode 100644 index d023fe1fd21..00000000000 Binary files a/src/libs/cplusplus/images/func_prot_st.png and /dev/null differ diff --git a/src/libs/cplusplus/images/func_st.png b/src/libs/cplusplus/images/func_st.png deleted file mode 100644 index 05119102edc..00000000000 Binary files a/src/libs/cplusplus/images/func_st.png and /dev/null differ diff --git a/src/libs/cplusplus/images/keyword.png b/src/libs/cplusplus/images/keyword.png index e5a51858d9e..335e63eeafd 100644 Binary files a/src/libs/cplusplus/images/keyword.png and b/src/libs/cplusplus/images/keyword.png differ diff --git a/src/libs/cplusplus/images/keyword@2x.png b/src/libs/cplusplus/images/keyword@2x.png new file mode 100644 index 00000000000..bfbe3c49cbc Binary files /dev/null and b/src/libs/cplusplus/images/keyword@2x.png differ diff --git a/src/libs/cplusplus/images/macro.png b/src/libs/cplusplus/images/macro.png index 44776470696..aa621fce042 100644 Binary files a/src/libs/cplusplus/images/macro.png and b/src/libs/cplusplus/images/macro.png differ diff --git a/src/libs/cplusplus/images/macro@2x.png b/src/libs/cplusplus/images/macro@2x.png new file mode 100644 index 00000000000..67b5938fc9c Binary files /dev/null and b/src/libs/cplusplus/images/macro@2x.png differ diff --git a/src/libs/cplusplus/images/member.png b/src/libs/cplusplus/images/member.png new file mode 100644 index 00000000000..e974865e93c Binary files /dev/null and b/src/libs/cplusplus/images/member.png differ diff --git a/src/libs/cplusplus/images/member@2x.png b/src/libs/cplusplus/images/member@2x.png new file mode 100644 index 00000000000..d0a22156c05 Binary files /dev/null and b/src/libs/cplusplus/images/member@2x.png differ diff --git a/src/libs/cplusplus/images/namespace.png b/src/libs/cplusplus/images/namespace.png index 18d2941572e..b36b2a4acfe 100644 Binary files a/src/libs/cplusplus/images/namespace.png and b/src/libs/cplusplus/images/namespace.png differ diff --git a/src/libs/cplusplus/images/namespace@2x.png b/src/libs/cplusplus/images/namespace@2x.png new file mode 100644 index 00000000000..81109db2b35 Binary files /dev/null and b/src/libs/cplusplus/images/namespace@2x.png differ diff --git a/src/libs/cplusplus/images/private.png b/src/libs/cplusplus/images/private.png new file mode 100644 index 00000000000..8e25668d805 Binary files /dev/null and b/src/libs/cplusplus/images/private.png differ diff --git a/src/libs/cplusplus/images/private@2x.png b/src/libs/cplusplus/images/private@2x.png new file mode 100644 index 00000000000..348785c1ba6 Binary files /dev/null and b/src/libs/cplusplus/images/private@2x.png differ diff --git a/src/libs/cplusplus/images/privatebackground.png b/src/libs/cplusplus/images/privatebackground.png new file mode 100644 index 00000000000..0c482e5e3ba Binary files /dev/null and b/src/libs/cplusplus/images/privatebackground.png differ diff --git a/src/libs/cplusplus/images/privatebackground@2x.png b/src/libs/cplusplus/images/privatebackground@2x.png new file mode 100644 index 00000000000..e29934552ed Binary files /dev/null and b/src/libs/cplusplus/images/privatebackground@2x.png differ diff --git a/src/libs/cplusplus/images/protected.png b/src/libs/cplusplus/images/protected.png new file mode 100644 index 00000000000..2c87cf2c09c Binary files /dev/null and b/src/libs/cplusplus/images/protected.png differ diff --git a/src/libs/cplusplus/images/protected@2x.png b/src/libs/cplusplus/images/protected@2x.png new file mode 100644 index 00000000000..ad1c62356c6 Binary files /dev/null and b/src/libs/cplusplus/images/protected@2x.png differ diff --git a/src/libs/cplusplus/images/protectedbackground.png b/src/libs/cplusplus/images/protectedbackground.png new file mode 100644 index 00000000000..d3c1b513340 Binary files /dev/null and b/src/libs/cplusplus/images/protectedbackground.png differ diff --git a/src/libs/cplusplus/images/protectedbackground@2x.png b/src/libs/cplusplus/images/protectedbackground@2x.png new file mode 100644 index 00000000000..3f129b5ce05 Binary files /dev/null and b/src/libs/cplusplus/images/protectedbackground@2x.png differ diff --git a/src/libs/cplusplus/images/signal.png b/src/libs/cplusplus/images/signal.png index 062b6261821..ff712b86190 100644 Binary files a/src/libs/cplusplus/images/signal.png and b/src/libs/cplusplus/images/signal.png differ diff --git a/src/libs/cplusplus/images/signal@2x.png b/src/libs/cplusplus/images/signal@2x.png new file mode 100644 index 00000000000..241e3d76342 Binary files /dev/null and b/src/libs/cplusplus/images/signal@2x.png differ diff --git a/src/libs/cplusplus/images/slot.png b/src/libs/cplusplus/images/slot.png index f1591d2fdbf..1c06b597270 100644 Binary files a/src/libs/cplusplus/images/slot.png and b/src/libs/cplusplus/images/slot.png differ diff --git a/src/libs/cplusplus/images/slot@2x.png b/src/libs/cplusplus/images/slot@2x.png new file mode 100644 index 00000000000..f1a96a773a4 Binary files /dev/null and b/src/libs/cplusplus/images/slot@2x.png differ diff --git a/src/libs/cplusplus/images/slot_priv.png b/src/libs/cplusplus/images/slot_priv.png deleted file mode 100644 index 3f5f62a5f6c..00000000000 Binary files a/src/libs/cplusplus/images/slot_priv.png and /dev/null differ diff --git a/src/libs/cplusplus/images/slot_prot.png b/src/libs/cplusplus/images/slot_prot.png deleted file mode 100644 index 92a86826630..00000000000 Binary files a/src/libs/cplusplus/images/slot_prot.png and /dev/null differ diff --git a/src/libs/cplusplus/images/static.png b/src/libs/cplusplus/images/static.png index 12c244780de..988d55d8257 100644 Binary files a/src/libs/cplusplus/images/static.png and b/src/libs/cplusplus/images/static.png differ diff --git a/src/libs/cplusplus/images/static@2x.png b/src/libs/cplusplus/images/static@2x.png new file mode 100644 index 00000000000..93b9d177514 Binary files /dev/null and b/src/libs/cplusplus/images/static@2x.png differ diff --git a/src/libs/cplusplus/images/staticbackground.png b/src/libs/cplusplus/images/staticbackground.png new file mode 100644 index 00000000000..314bace86a2 Binary files /dev/null and b/src/libs/cplusplus/images/staticbackground.png differ diff --git a/src/libs/cplusplus/images/staticbackground@2x.png b/src/libs/cplusplus/images/staticbackground@2x.png new file mode 100644 index 00000000000..912032dcaed Binary files /dev/null and b/src/libs/cplusplus/images/staticbackground@2x.png differ diff --git a/src/libs/cplusplus/images/struct.png b/src/libs/cplusplus/images/struct.png deleted file mode 100644 index 4b613f68f94..00000000000 Binary files a/src/libs/cplusplus/images/struct.png and /dev/null differ diff --git a/src/libs/cplusplus/images/var.png b/src/libs/cplusplus/images/var.png deleted file mode 100644 index 089cfb45e5f..00000000000 Binary files a/src/libs/cplusplus/images/var.png and /dev/null differ diff --git a/src/libs/cplusplus/images/var_priv.png b/src/libs/cplusplus/images/var_priv.png deleted file mode 100644 index 8c6cf64fe7b..00000000000 Binary files a/src/libs/cplusplus/images/var_priv.png and /dev/null differ diff --git a/src/libs/cplusplus/images/var_priv_st.png b/src/libs/cplusplus/images/var_priv_st.png deleted file mode 100644 index 81ef73f3f94..00000000000 Binary files a/src/libs/cplusplus/images/var_priv_st.png and /dev/null differ diff --git a/src/libs/cplusplus/images/var_prot.png b/src/libs/cplusplus/images/var_prot.png deleted file mode 100644 index a7496aada00..00000000000 Binary files a/src/libs/cplusplus/images/var_prot.png and /dev/null differ diff --git a/src/libs/cplusplus/images/var_prot_st.png b/src/libs/cplusplus/images/var_prot_st.png deleted file mode 100644 index f078b2fd340..00000000000 Binary files a/src/libs/cplusplus/images/var_prot_st.png and /dev/null differ diff --git a/src/libs/cplusplus/images/var_st.png b/src/libs/cplusplus/images/var_st.png deleted file mode 100644 index 2070ca71b6b..00000000000 Binary files a/src/libs/cplusplus/images/var_st.png and /dev/null differ diff --git a/src/libs/utils/theme/theme.h b/src/libs/utils/theme/theme.h index 884b76104fc..8dd54e5a79c 100644 --- a/src/libs/utils/theme/theme.h +++ b/src/libs/utils/theme/theme.h @@ -151,6 +151,18 @@ public: IconsModeAnalyzeActiveColor, IconsModeHelpActiveColor, + /* Code model Icons */ + + IconsCodeModelKeywordColor, + IconsCodeModelClassColor, + IconsCodeModelStructColor, + IconsCodeModelFunctionColor, + IconsCodeModelVariableColor, + IconsCodeModelEnumColor, + IconsCodeModelMacroColor, + IconsCodeModelOverlayBackgroundColor, + IconsCodeModelOverlayForegroundColor, + /* Output panes */ OutputPanes_DebugTextColor, diff --git a/src/plugins/texteditor/codeassist/genericproposalwidget.cpp b/src/plugins/texteditor/codeassist/genericproposalwidget.cpp index b1f72f79242..6a792c152c0 100644 --- a/src/plugins/texteditor/codeassist/genericproposalwidget.cpp +++ b/src/plugins/texteditor/codeassist/genericproposalwidget.cpp @@ -275,6 +275,7 @@ GenericProposalWidgetPrivate::GenericProposalWidgetPrivate(QWidget *completionWi , m_assistant(0) , m_autoWidth(true) { + m_completionListView->setIconSize(QSize(16, 16)); connect(m_completionListView, &QAbstractItemView::activated, this, &GenericProposalWidgetPrivate::handleActivation); diff --git a/src/tools/icons/qtcreatoricons.svg b/src/tools/icons/qtcreatoricons.svg index 1435147586e..cb962e1c699 100644 --- a/src/tools/icons/qtcreatoricons.svg +++ b/src/tools/icons/qtcreatoricons.svg @@ -3405,6 +3405,587 @@ id="path5457-0-5" style="display:inline" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +