Commit 00a6c780 authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

qt/macos: add missing addons intf and meta categories

(cherry picked from commit f10d3f0435df67b62ebdd318179949429cf77e2b)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 79a6feae
...@@ -99,6 +99,10 @@ static VLCAddonManager *_o_sharedInstance = nil; ...@@ -99,6 +99,10 @@ static VLCAddonManager *_o_sharedInstance = nil;
[[_typeSwitcher lastItem] setTag:ADDON_PLAYLIST_PARSER]; [[_typeSwitcher lastItem] setTag:ADDON_PLAYLIST_PARSER];
[_typeSwitcher addItemWithTitle:_NS("Service Discovery")]; [_typeSwitcher addItemWithTitle:_NS("Service Discovery")];
[[_typeSwitcher lastItem] setTag:ADDON_SERVICE_DISCOVERY]; [[_typeSwitcher lastItem] setTag:ADDON_SERVICE_DISCOVERY];
[_typeSwitcher addItemWithTitle:_NS("Interfaces")];
[[_typeSwitcher lastItem] setTag:ADDON_INTERFACE];
[_typeSwitcher addItemWithTitle:_NS("Art and meta fetchers")];
[[_typeSwitcher lastItem] setTag:ADDON_META];
[_typeSwitcher addItemWithTitle:_NS("Extensions")]; [_typeSwitcher addItemWithTitle:_NS("Extensions")];
[[_typeSwitcher lastItem] setTag:ADDON_EXTENSION]; [[_typeSwitcher lastItem] setTag:ADDON_EXTENSION];
......
...@@ -383,6 +383,12 @@ AddonsTab::AddonsTab( intf_thread_t *p_intf_ ) : QVLCFrame( p_intf_ ) ...@@ -383,6 +383,12 @@ AddonsTab::AddonsTab( intf_thread_t *p_intf_ ) : QVLCFrame( p_intf_ )
qtr( "Service discoveries adds new sources to your playlist" qtr( "Service discoveries adds new sources to your playlist"
" such as web radios, video websites, ..." ), " such as web radios, video websites, ..." ),
ADDON_SERVICE_DISCOVERY ); ADDON_SERVICE_DISCOVERY );
ADD_CATEGORY( qtr("Interfaces"),
"",
ADDON_INTERFACE );
ADD_CATEGORY( qtr("Art and meta fetchers"),
qtr( "Retrieves extra info and art for playlist items" ),
ADDON_META );
ADD_CATEGORY( qtr("Extensions"), ADD_CATEGORY( qtr("Extensions"),
qtr( "Extensions brings various enhancements." qtr( "Extensions brings various enhancements."
" Check descriptions for more details" ), " Check descriptions for more details" ),
...@@ -931,6 +937,12 @@ QColor AddonsListModel::getColorByAddonType( int i_type ) ...@@ -931,6 +937,12 @@ QColor AddonsListModel::getColorByAddonType( int i_type )
case ADDON_SKIN2: case ADDON_SKIN2:
color = QColor(0x8B, 0xD6, 0xFC); color = QColor(0x8B, 0xD6, 0xFC);
break; break;
case ADDON_INTERFACE:
color = QColor(0x00, 0x13, 0x85);
break;
case ADDON_META:
color = QColor(0xCD, 0x23, 0xBF);
break;
case ADDON_PLUGIN: case ADDON_PLUGIN:
case ADDON_UNKNOWN: case ADDON_UNKNOWN:
case ADDON_OTHER: case ADDON_OTHER:
......
...@@ -86,6 +86,10 @@ QString AddonsManager::getAddonType( int i_type ) ...@@ -86,6 +86,10 @@ QString AddonsManager::getAddonType( int i_type )
return qtr("Playlist parsers"); return qtr("Playlist parsers");
case ADDON_SERVICE_DISCOVERY: case ADDON_SERVICE_DISCOVERY:
return qtr("Service Discovery"); return qtr("Service Discovery");
case ADDON_INTERFACE:
return qtr("Interfaces");
case ADDON_META:
return qtr("Art and meta fetchers");
case ADDON_EXTENSION: case ADDON_EXTENSION:
return qtr("Extensions"); return qtr("Extensions");
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment