[Bf-blender-cvs] [45ee4857031] soc-2020-outliner: Outliner: Try using radio button icons

Nathan Craddock noreply at git.blender.org
Thu Jun 11 05:55:15 CEST 2020


Commit: 45ee4857031018551b8b57046f4fc9d805cce3a7
Author: Nathan Craddock
Date:   Wed Jun 10 21:08:06 2020 -0600
Branches: soc-2020-outliner
https://developer.blender.org/rB45ee4857031018551b8b57046f4fc9d805cce3a7

Outliner: Try using radio button icons

Use radio button icons over the dot and check in the outliner.

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

M	source/blender/editors/space_outliner/outliner_draw.c

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

diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c
index 4fddccd4bff..0c4d65a4582 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -1923,11 +1923,10 @@ static void outliner_draw_left_column_activation(const bContext *C,
 
     if (ob->type == OB_CAMERA) {
       if (tvc->scene->camera == ob) {
-        /* Draw check for active camera */
         but = uiDefIconBut(block,
                            UI_BTYPE_ICON_TOGGLE,
                            0,
-                           ICON_CHECKMARK,
+                           ICON_RADIOBUT_ON,
                            0,
                            te->ys,
                            UI_UNIT_X,
@@ -1940,11 +1939,10 @@ static void outliner_draw_left_column_activation(const bContext *C,
                            TIP_(""));
       }
       else {
-        /* Draw dot icon to set active camera */
         but = uiDefIconBut(block,
                            UI_BTYPE_ICON_TOGGLE,
                            0,
-                           ICON_DOT,
+                           ICON_RADIOBUT_OFF,
                            0,
                            te->ys,
                            UI_UNIT_X,
@@ -1964,11 +1962,10 @@ static void outliner_draw_left_column_activation(const bContext *C,
     Scene *scene = (Scene *)tselem->id;
 
     if (tvc->scene == scene) {
-      /* Draw check for active scene */
       but = uiDefIconBut(block,
                          UI_BTYPE_ICON_TOGGLE,
                          0,
-                         ICON_CHECKMARK,
+                         ICON_RADIOBUT_ON,
                          0,
                          te->ys,
                          UI_UNIT_X,
@@ -1981,11 +1978,10 @@ static void outliner_draw_left_column_activation(const bContext *C,
                          TIP_(""));
     }
     else {
-      /* Draw dot icon to set active scene */
       but = uiDefIconBut(block,
                          UI_BTYPE_ICON_TOGGLE,
                          0,
-                         ICON_DOT,
+                         ICON_RADIOBUT_OFF,
                          0,
                          te->ys,
                          UI_UNIT_X,
@@ -2005,11 +2001,10 @@ static void outliner_draw_left_column_activation(const bContext *C,
     if ((tselem->type == TSE_VIEW_COLLECTION_BASE &&
          active == tvc->view_layer->layer_collections.first) ||
         (tselem->type == TSE_LAYER_COLLECTION && active == te->directdata)) {
-      /* Draw check for active collection */
       but = uiDefIconBut(block,
                          UI_BTYPE_ICON_TOGGLE,
                          0,
-                         ICON_CHECKMARK,
+                         ICON_RADIOBUT_ON,
                          0,
                          te->ys,
                          UI_UNIT_X,
@@ -2022,11 +2017,10 @@ static void outliner_draw_left_column_activation(const bContext *C,
                          TIP_(""));
     }
     else {
-      /* Draw dot icon to set active collection */
       but = uiDefIconBut(block,
                          UI_BTYPE_ICON_TOGGLE,
                          0,
-                         ICON_DOT,
+                         ICON_RADIOBUT_OFF,
                          0,
                          te->ys,
                          UI_UNIT_X,



More information about the Bf-blender-cvs mailing list