Dope Sheet: remove many hard-coded color and alpha constants.
[blender.git] / source / blender / editors / animation / anim_channels_defines.c
index 1495ca50870aad9d37a257cb6f754542420fe2d2..b80667a011ae705209380d7280a240b88cecf5ac 100644 (file)
@@ -223,8 +223,8 @@ static void acf_generic_channel_color(bAnimContext *ac, bAnimListElem *ale, floa
        }
        else {
                // FIXME: what happens when the indention is 1 greater than what it should be (due to grouping)?
-               int colOfs = 20 - 20 * indent;
-               UI_GetThemeColorShade3fv(TH_DOPESHEET_CHANNELSUBOB, colOfs, r_color);
+               int colOfs = 10 - 10 * indent;
+               UI_GetThemeColorShade3fv(TH_SHADE2, colOfs, r_color);
        }
 }
 
@@ -817,9 +817,9 @@ static void acf_group_color(bAnimContext *ac, bAnimListElem *ale, float r_color[
        else {
                /* highlight only for active */
                if (ale->flag & AGRP_ACTIVE)
-                       UI_GetThemeColorShade3fv(TH_GROUP_ACTIVE, 10, r_color);
+                       UI_GetThemeColor3fv(TH_GROUP_ACTIVE, r_color);
                else
-                       UI_GetThemeColorShade3fv(TH_GROUP, 20, r_color);
+                       UI_GetThemeColor3fv(TH_GROUP, r_color);
        }
 }