Skip to content

Commit

Permalink
GUI: Increased window width for all languages (valinet#2574)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amrsatrio committed Dec 12, 2023
1 parent ec68783 commit 3c0b4a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ep_gui/GUI.c
Original file line number Diff line number Diff line change
Expand Up @@ -1054,8 +1054,8 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
DttOpts.crText = g_darkModeEnabled ? GUI_TEXTCOLOR_DARK : GUI_TEXTCOLOR;
DWORD dwTextFlags = DT_SINGLELINE | DT_VCENTER | DT_END_ELLIPSIS;
RECT rcText;
DWORD dwMinWidthDp = 480;
if (!wcscmp(wszThreadLanguage, L"nl-NL")) dwMinWidthDp = 600;
DWORD dwMinWidthDp = 600; // 480
// if (!wcscmp(wszThreadLanguage, L"nl-NL")) dwMinWidthDp = 600;
DWORD dwMaxHeight = 0, dwMaxWidth = (DWORD)(dwMinWidthDp * (_this->dpi.x / 96.0));
BOOL bTabOrderHit = FALSE;
DWORD dwLeftPad = _this->padding.left + _this->sidebarWidth + _this->padding.right;
Expand Down
2 changes: 1 addition & 1 deletion ep_gui/GUI.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ extern HMODULE hModule;
#define GUI_MAX_TABORDER 9999
#define GUI_PADDING 5
#define GUI_PADDING_LEFT GUI_PADDING * 3
#define GUI_SIDEBAR_WIDTH 110
#define GUI_SIDEBAR_WIDTH 140 // 110
#define GUI_PADDING_RIGHT GUI_PADDING * 3
#define GUI_PADDING_TOP GUI_PADDING
#define GUI_PADDING_BOTTOM GUI_PADDING
Expand Down
2 changes: 1 addition & 1 deletion ep_gui/resources/lang/ep_gui.en-US.rc
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ BEGIN
IDS_TRAY_SHOWDESKTOPBTN_2 "Hidden"
IDS_TRAY_SKINICONS "Apply Windows 11 style to system tray icons"
IDS_TRAY_REPLACENETWORK_L1 "Choosing 'Open Network && Internet settings' when right clicking the"
IDS_TRAY_REPLACENETWORK_L2 "network icon should open:"
IDS_TRAY_REPLACENETWORK_L2 "network icon should open"
IDS_TRAY_REPLACENETWORK_0 "Network section in the Settings app (default)"
IDS_TRAY_REPLACENETWORK_1 "Network and Sharing Center in Control Panel"
IDS_TRAY_REPLACENETWORK_2 "Network Connections in Control Panel"
Expand Down

0 comments on commit 3c0b4a9

Please sign in to comment.