[Bf-blender-cvs] [c6801d7] UI-graphical-redesign: Use thinner scrollbars for UILists as well
Julian Eisel
noreply at git.blender.org
Wed Jun 3 17:03:58 CEST 2015
Commit: c6801d7cdd3471e22ea67d60bac20f251ac9b7f8
Author: Julian Eisel
Date: Wed Jun 3 17:00:28 2015 +0200
Branches: UI-graphical-redesign
https://developer.blender.org/rBc6801d7cdd3471e22ea67d60bac20f251ac9b7f8
Use thinner scrollbars for UILists as well
Todo: With the current default theme scrollbars are hard to see, we
could do better but that's for later.
===================================================================
M source/blender/editors/interface/interface_templates.c
===================================================================
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c
index bb4ae06..2daae3e 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -79,6 +79,8 @@
#include "UI_interface.h"
#include "UI_interface_icons.h"
+#include "UI_view2d.h"
+
#include "interface_intern.h"
void UI_template_fix_linking(void)
@@ -3145,7 +3147,7 @@ void uiTemplateList(
/* add scrollbar */
if (len > layoutdata.visual_items) {
col = uiLayoutColumn(row, false);
- uiDefButI(block, UI_BTYPE_SCROLL, 0, "", 0, 0, UI_UNIT_X * 0.75, UI_UNIT_Y * dyn_data->visual_height,
+ uiDefButI(block, UI_BTYPE_SCROLL, 0, "", 0, 0, V2D_SCROLL_WIDTH, UI_UNIT_Y * dyn_data->visual_height,
&ui_list->list_scroll, 0, dyn_data->height - dyn_data->visual_height,
dyn_data->visual_height, 0, "");
}
@@ -3234,7 +3236,7 @@ void uiTemplateList(
/* add scrollbar */
if (len > layoutdata.visual_items) {
/* col = */ uiLayoutColumn(row, false);
- uiDefButI(block, UI_BTYPE_SCROLL, 0, "", 0, 0, UI_UNIT_X * 0.75, UI_UNIT_Y * dyn_data->visual_height,
+ uiDefButI(block, UI_BTYPE_SCROLL, 0, "", 0, 0, V2D_SCROLL_WIDTH, UI_UNIT_Y * dyn_data->visual_height,
&ui_list->list_scroll, 0, dyn_data->height - dyn_data->visual_height,
dyn_data->visual_height, 0, "");
}
More information about the Bf-blender-cvs
mailing list