[Bf-blender-cvs] [fcee73521eb] temp-asset-browser-catalogs-ui: Minor tweaks

Julian Eisel noreply at git.blender.org
Thu Sep 2 18:15:31 CEST 2021


Commit: fcee73521ebe5da26d800859999c27ad375a7b02
Author: Julian Eisel
Date:   Thu Sep 2 18:14:07 2021 +0200
Branches: temp-asset-browser-catalogs-ui
https://developer.blender.org/rBfcee73521ebe5da26d800859999c27ad375a7b02

Minor tweaks

* Avoid unnecessarily specifying button width.
* Remove left padding from items without icon, looks better that way.

===================================================================

M	source/blender/editors/space_file/asset_catalog_tree_view.cc

===================================================================

diff --git a/source/blender/editors/space_file/asset_catalog_tree_view.cc b/source/blender/editors/space_file/asset_catalog_tree_view.cc
index ee6e7d13acf..521bf757ea0 100644
--- a/source/blender/editors/space_file/asset_catalog_tree_view.cc
+++ b/source/blender/editors/space_file/asset_catalog_tree_view.cc
@@ -46,7 +46,7 @@ static uiBut *add_row_button(uiBlock *block, StringRef name, BIFIconID icon)
                           name.data(),
                           0,
                           0,
-                          UI_UNIT_X * 3,
+                          0,
                           UI_UNIT_Y,
                           nullptr,
                           0,
@@ -70,7 +70,7 @@ void file_draw_asset_catalog_tree_view_in_layout(::AssetLibrary *asset_library_c
 
     catalog_tree->foreach_item([&](const AssetCatalogTreeItem &item) {
       uiBut *but = add_row_button(
-          block, item.get_name(), item.has_children() ? ICON_TRIA_DOWN : ICON_BLANK1);
+          block, item.get_name(), item.has_children() ? ICON_TRIA_DOWN : ICON_NONE);
       UI_but_datasetrow_indentation_set(but, item.count_parents());
     });
   }



More information about the Bf-blender-cvs mailing list