Dope Sheet: remove many hard-coded color and alpha constants.
Add the necessary colors and/or alpha components to the theme instead. Also switch the background for ordinary channels to use the likely intended theme option, instead of the window background color. The general rule is that the channel color is drawn full strength in the channel list on the left, and with alpha in the actual key frame area on the right. This alpha is also reused with bone group colors. Reviewers: brecht, billreynish Differential Revision: https://developer.blender.org/D3813
This commit is contained in:
@@ -381,6 +381,10 @@ const unsigned char *UI_ThemeGetColorPtr(bTheme *btheme, int spacetype, int colo
|
||||
cp = ts->keytype_jitter; break;
|
||||
case TH_KEYTYPE_JITTER_SELECT:
|
||||
cp = ts->keytype_jitter_select; break;
|
||||
case TH_KEYTYPE_MOVEHOLD:
|
||||
cp = ts->keytype_movehold; break;
|
||||
case TH_KEYTYPE_MOVEHOLD_SELECT:
|
||||
cp = ts->keytype_movehold_select; break;
|
||||
case TH_KEYBORDER:
|
||||
cp = ts->keyborder; break;
|
||||
case TH_KEYBORDER_SELECT:
|
||||
|
||||
Reference in New Issue
Block a user