Skip to content

Commit 6a8102b

Browse files
committed
docs(plugin-security): adjusted the size of text and buttons
1 parent a145ac9 commit 6a8102b

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

resource/plugin_security_dialog.rc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77

88
#pragma code_page(65001)
99

10-
IDD_PLUGIN_SECURITY_DIALOG DIALOGEX 0, 0, 420, 280
10+
IDD_PLUGIN_SECURITY_DIALOG DIALOGEX 0, 0, 360, 200
1111
STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
1212
CAPTION "Plugin Security"
13-
FONT 10, "Segoe UI"
13+
FONT 9, "Segoe UI"
1414
BEGIN
15-
CONTROL "", IDC_PLUGIN_SECURITY_TEXT, "Static", SS_OWNERDRAW, 0, 0, 420, 238
16-
PUSHBUTTON "Cancel", IDC_PLUGIN_SECURITY_CANCEL_BTN, 250, 242, 50, 32
17-
PUSHBUTTON "Run Once", IDC_PLUGIN_SECURITY_RUN_ONCE_BTN, 305, 242, 55, 32
18-
DEFPUSHBUTTON "Trust && Run", IDC_PLUGIN_SECURITY_TRUST_BTN, 365, 242, 50, 32
15+
CONTROL "", IDC_PLUGIN_SECURITY_TEXT, "Static", SS_OWNERDRAW, 0, 0, 360, 165
16+
PUSHBUTTON "Cancel", IDC_PLUGIN_SECURITY_CANCEL_BTN, 190, 175, 50, 14
17+
PUSHBUTTON "Run Once", IDC_PLUGIN_SECURITY_RUN_ONCE_BTN, 245, 175, 55, 14
18+
DEFPUSHBUTTON "Trust && Run", IDC_PLUGIN_SECURITY_TRUST_BTN, 305, 175, 50, 14
1919
END

src/dialog/dialog_plugin_security.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ static INT_PTR CALLBACK PluginSecurityDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wP
106106
/* Button layout parameters */
107107
int btnSpacing = 5;
108108
int btnPaddingX = 24;
109-
int btnHeight = 32; /* Increased height for better appearance */
110-
int btnY = dialogHeight - btnHeight - 13; /* 13px from bottom */
109+
int btnHeight = 23; /* Standard height */
110+
int btnY = dialogHeight - btnHeight - 10; /* 10px from bottom */
111111
int rightMargin = 10;
112112

113113
/* Measure each button text */
@@ -149,15 +149,15 @@ static INT_PTR CALLBACK PluginSecurityDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wP
149149
wchar_t messageWide[4096];
150150
int written = swprintf(messageWide, 4096,
151151
L"<md>\n"
152-
L"# %s\n\n"
153-
L"## %s\n\n"
154-
L"`%hs`\n\n\n"
155-
L"### %s\n\n"
152+
L"%s\n\n"
153+
L"%s\n"
154+
L"`%hs`\n\n"
155+
L"%s\n"
156156
L"- %s\n"
157-
L"- **%s** (%s)\n"
157+
L"- %s (%s)\n"
158158
L"- %s\n"
159-
L"- **%s**\n\n\n"
160-
L"### %s\n\n"
159+
L"- %s\n\n"
160+
L"%s\n"
161161
L"- %s\n"
162162
L"- %s\n"
163163
L"- %s\n"
@@ -255,10 +255,10 @@ static INT_PTR CALLBACK PluginSecurityDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wP
255255

256256
/* Add margins for content */
257257
RECT drawRect = rect;
258-
drawRect.left += 20;
259-
drawRect.top += 20;
260-
drawRect.right -= 20;
261-
drawRect.bottom -= 20;
258+
drawRect.left += 10;
259+
drawRect.top += 10;
260+
drawRect.right -= 10;
261+
drawRect.bottom -= 10;
262262

263263
RenderMarkdownText(hdc, g_displayText, g_links, g_linkCount,
264264
g_headings, g_headingCount,

0 commit comments

Comments
 (0)