UI: change toolbar icon size from 38 -> 32
This commit is contained in:
parent
a978654977
commit
937e4fb49a
|
@ -425,7 +425,7 @@ class ToolSelectPanelHelper:
|
|||
return ui_gen, show_text
|
||||
|
||||
@classmethod
|
||||
def draw_cls(cls, layout, context, detect_layout=True, scale_y=2.0):
|
||||
def draw_cls(cls, layout, context, detect_layout=True, scale_y=1.75):
|
||||
# Use a classmethod so it can be called outside of a panel context.
|
||||
|
||||
# XXX, this UI isn't very nice.
|
||||
|
|
|
@ -49,7 +49,7 @@ typedef struct IconFile {
|
|||
#define ICON_DEFAULT_HEIGHT 16
|
||||
#define ICON_DEFAULT_WIDTH 16
|
||||
|
||||
#define ICON_DEFAULT_HEIGHT_TOOLBAR 38
|
||||
#define ICON_DEFAULT_HEIGHT_TOOLBAR 32
|
||||
|
||||
#define ICON_DEFAULT_HEIGHT_SCALE ((int)(UI_UNIT_Y * 0.8f))
|
||||
#define ICON_DEFAULT_WIDTH_SCALE ((int)(UI_UNIT_X * 0.8f))
|
||||
|
|
|
@ -1331,7 +1331,7 @@ static int view3d_tools_region_snap_size(const ARegion *ar, int size, int axis)
|
|||
{
|
||||
if (axis == 0) {
|
||||
/* Note, this depends on the icon size: see #ICON_DEFAULT_HEIGHT_TOOLBAR. */
|
||||
const float snap_units[] = {3 + 0.25f, 5 + 0.25};
|
||||
const float snap_units[] = {2 + 0.8f, 4 + 0.8f};
|
||||
const float aspect = BLI_rctf_size_x(&ar->v2d.cur) / (BLI_rcti_size_x(&ar->v2d.mask) + 1);
|
||||
int best_diff = INT_MAX;
|
||||
int best_size = size;
|
||||
|
|
Loading…
Reference in New Issue