UI: Widen Preferences Window
The default size of the Preferences window is often not wide enough to fit some strings under System, Keymap, and others. Make Preferences window slightly wider, but still a conservative width so it doesn't cover up much of the screen at the smallest recommended screen size (1920x1080). See PR for details and screenshots. Pull Request: https://projects.blender.org/blender/blender/pulls/144497
This commit is contained in:
@@ -6134,7 +6134,7 @@ static wmOperatorStatus userpref_show_exec(bContext *C, wmOperator *op)
|
||||
wmWindow *win_cur = CTX_wm_window(C);
|
||||
/* Use eventstate, not event from _invoke, so this can be called through exec(). */
|
||||
const wmEvent *event = win_cur->eventstate;
|
||||
int sizex = (500 + UI_NAVIGATION_REGION_WIDTH) * UI_SCALE_FAC;
|
||||
int sizex = (680 + UI_NAVIGATION_REGION_WIDTH) * UI_SCALE_FAC;
|
||||
int sizey = 520 * UI_SCALE_FAC;
|
||||
|
||||
PropertyRNA *prop = RNA_struct_find_property(op->ptr, "section");
|
||||
|
||||
Reference in New Issue
Block a user