UI: Use New Internet Icon
We recently added a new "Internet" icon, meant to represent internet services and protocols generally, in contrast with the existing "url" icon which can be seen as being http (web link) specifically. This PR just uses this icon for cloud storage uses and for remote extension repository. Pull Request: https://projects.blender.org/blender/blender/pulls/119409
This commit is contained in:
committed by
Harley Acheson
parent
42e7a720c9
commit
bc70b597fc
@@ -1597,7 +1597,7 @@ class USERPREF_UL_asset_libraries(UIList):
|
||||
class USERPREF_UL_extension_repos(UIList):
|
||||
def draw_item(self, _context, layout, _data, item, icon, _active_data, _active_propname, _index):
|
||||
repo = item
|
||||
icon = 'NETWORK_DRIVE' if repo.use_remote_path else 'DISK_DRIVE'
|
||||
icon = 'INTERNET' if repo.use_remote_path else 'DISK_DRIVE'
|
||||
if self.layout_type in {'DEFAULT', 'COMPACT'}:
|
||||
layout.prop(repo, "name", text="", icon=icon, emboss=False)
|
||||
elif self.layout_type == 'GRID':
|
||||
|
||||
@@ -687,7 +687,7 @@ static void file_draw_preview(const FileList *files,
|
||||
float icon_x, icon_y;
|
||||
icon_x = xco + (2.0f * UI_SCALE_FAC);
|
||||
icon_y = yco + (2.0f * UI_SCALE_FAC);
|
||||
const int arrow = is_link ? ICON_LOOP_FORWARDS : ICON_URL;
|
||||
const int arrow = is_link ? ICON_LOOP_FORWARDS : ICON_INTERNET;
|
||||
if (!is_icon) {
|
||||
/* At very bottom-left if preview style. */
|
||||
const uchar dark[4] = {0, 0, 0, 255};
|
||||
|
||||
@@ -370,7 +370,7 @@ void fsmenu_read_system(FSMenu *fsmenu, int read_bookmarks)
|
||||
FS_CATEGORY_SYSTEM_BOOKMARKS,
|
||||
FOLDERID_SkyDrive,
|
||||
N_("OneDrive"),
|
||||
ICON_URL,
|
||||
ICON_INTERNET,
|
||||
FS_INSERT_LAST);
|
||||
|
||||
/* These items are just put in path cache for thumbnail views and if bookmarked. */
|
||||
|
||||
Reference in New Issue
Block a user