UI: make sidebars in 3D view and other editors a little wider and consistent
This commit is contained in:
@@ -228,6 +228,7 @@ enum {
|
||||
|
||||
#define UI_PANEL_WIDTH 340
|
||||
#define UI_COMPACT_PANEL_WIDTH 160
|
||||
#define UI_SIDEBAR_PANEL_WIDTH 220
|
||||
#define UI_NAVIGATION_REGION_WIDTH UI_COMPACT_PANEL_WIDTH
|
||||
#define UI_NARROW_NAVIGATION_REGION_WIDTH 100
|
||||
|
||||
|
||||
@@ -45,9 +45,9 @@
|
||||
#include "WM_types.h"
|
||||
#include "WM_message.h"
|
||||
|
||||
#include "UI_interface.h"
|
||||
#include "UI_resources.h"
|
||||
#include "UI_view2d.h"
|
||||
#include "UI_interface.h"
|
||||
|
||||
#include "ED_space_api.h"
|
||||
#include "ED_screen.h"
|
||||
@@ -899,7 +899,7 @@ void ED_spacetype_action(void)
|
||||
/* regions: UI buttons */
|
||||
art = MEM_callocN(sizeof(ARegionType), "spacetype action region");
|
||||
art->regionid = RGN_TYPE_UI;
|
||||
art->prefsizex = 200;
|
||||
art->prefsizex = UI_SIDEBAR_PANEL_WIDTH;
|
||||
art->keymapflag = ED_KEYMAP_UI;
|
||||
art->listener = action_region_listener;
|
||||
art->init = action_buttons_area_init;
|
||||
|
||||
@@ -891,7 +891,7 @@ void ED_spacetype_ipo(void)
|
||||
/* regions: UI buttons */
|
||||
art = MEM_callocN(sizeof(ARegionType), "spacetype graphedit region");
|
||||
art->regionid = RGN_TYPE_UI;
|
||||
art->prefsizex = 200;
|
||||
art->prefsizex = UI_SIDEBAR_PANEL_WIDTH;
|
||||
art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_FRAMES;
|
||||
art->listener = graph_region_listener;
|
||||
art->init = graph_buttons_region_init;
|
||||
|
||||
@@ -1033,7 +1033,7 @@ void ED_spacetype_image(void)
|
||||
/* regions: listview/buttons/scopes */
|
||||
art = MEM_callocN(sizeof(ARegionType), "spacetype image region");
|
||||
art->regionid = RGN_TYPE_UI;
|
||||
art->prefsizex = 220; // XXX
|
||||
art->prefsizex = UI_SIDEBAR_PANEL_WIDTH;
|
||||
art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_FRAMES;
|
||||
art->listener = image_buttons_region_listener;
|
||||
art->message_subscribe = ED_area_do_mgs_subscribe_for_tool_ui;
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
|
||||
#include "RNA_access.h"
|
||||
|
||||
#include "UI_interface.h"
|
||||
#include "UI_resources.h"
|
||||
#include "UI_view2d.h"
|
||||
|
||||
@@ -642,7 +643,7 @@ void ED_spacetype_nla(void)
|
||||
/* regions: UI buttons */
|
||||
art = MEM_callocN(sizeof(ARegionType), "spacetype nla region");
|
||||
art->regionid = RGN_TYPE_UI;
|
||||
art->prefsizex = 200;
|
||||
art->prefsizex = UI_SIDEBAR_PANEL_WIDTH;
|
||||
art->keymapflag = ED_KEYMAP_UI;
|
||||
art->listener = nla_region_listener;
|
||||
art->init = nla_buttons_region_init;
|
||||
|
||||
@@ -998,7 +998,7 @@ void ED_spacetype_node(void)
|
||||
/* regions: listview/buttons */
|
||||
art = MEM_callocN(sizeof(ARegionType), "spacetype node region");
|
||||
art->regionid = RGN_TYPE_UI;
|
||||
art->prefsizex = 180; // XXX
|
||||
art->prefsizex = UI_SIDEBAR_PANEL_WIDTH;
|
||||
art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_FRAMES;
|
||||
art->listener = node_region_listener;
|
||||
art->init = node_buttons_region_init;
|
||||
|
||||
@@ -832,7 +832,7 @@ void ED_spacetype_sequencer(void)
|
||||
/* regions: listview/buttons */
|
||||
art = MEM_callocN(sizeof(ARegionType), "spacetype sequencer region");
|
||||
art->regionid = RGN_TYPE_UI;
|
||||
art->prefsizex = 220; // XXX
|
||||
art->prefsizex = UI_SIDEBAR_PANEL_WIDTH;
|
||||
art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_FRAMES;
|
||||
art->listener = sequencer_buttons_region_listener;
|
||||
art->init = sequencer_buttons_region_init;
|
||||
|
||||
@@ -1607,7 +1607,7 @@ void ED_spacetype_view3d(void)
|
||||
/* regions: listview/buttons */
|
||||
art = MEM_callocN(sizeof(ARegionType), "spacetype view3d buttons region");
|
||||
art->regionid = RGN_TYPE_UI;
|
||||
art->prefsizex = 180; /* XXX */
|
||||
art->prefsizex = UI_SIDEBAR_PANEL_WIDTH;
|
||||
art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_FRAMES;
|
||||
art->listener = view3d_buttons_region_listener;
|
||||
art->message_subscribe = ED_area_do_mgs_subscribe_for_tool_ui;
|
||||
|
||||
Reference in New Issue
Block a user