diff --git a/htdocs/css/general.css b/htdocs/css/general.css index bfe87c8..44e6809 100644 --- a/htdocs/css/general.css +++ b/htdocs/css/general.css @@ -11,8 +11,9 @@ :root { --default-amount-color: #a5b3c0; --default-font-color: #c2c2c2; - --default-font-size: 2.5vw; + --default-font-size: 2.1vw; --default-header-color: #64aa82; + --default-header-font-size: 2.4vw; --link-color: #436055; --link-font-size: 1.8vw; @@ -81,19 +82,19 @@ div { h1 { color: var(--default-header-color); - font-size: 3vw; + font-size: var(--default-header-font-size); margin: 0 0 5px; padding: 0; } h2 { - font-size: 3vw; + font-size: var(--default-header-font-size); margin: 0; padding: 0; } h3 { - font-size: 2vw; + font-size: var(--default-font-size); padding: 0; margin: 0; } @@ -133,6 +134,10 @@ select option { font-size: var(--default-font-size); } +td { + font-size: var(--default-font-size); +} + textarea { font-family: monospace; border: 1px solid #3b4b3d; @@ -145,7 +150,7 @@ textarea { .app-header { font-family: "Digital Sans EF Medium", sans-serif; color: var(--default-header-color); - font-size: 5vh; + font-size: 4vh; margin-top: 0; margin-right: 20px; margin-left: 10px; diff --git a/htdocs/index.html b/htdocs/index.html index dcb64ce..b8a8308 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -7,8 +7,8 @@ -

-
+

+
diff --git a/src/siadrive/siadriveapp.cpp b/src/siadrive/siadriveapp.cpp index af4e5fc..d1ffbc8 100644 --- a/src/siadrive/siadriveapp.cpp +++ b/src/siadrive/siadriveapp.cpp @@ -396,9 +396,9 @@ void CSiaDriveApp::OnContextInitialized() #ifdef _WIN32 windowInfo.SetAsPopup(nullptr, "SiaDrive"); #endif - windowInfo.width = 720; - windowInfo.height = 640; - + windowInfo.width = 800; + windowInfo.height = 690; + CefBrowserHost::CreateBrowser(windowInfo, _handler, url.str(), browserSettings, nullptr); } } diff --git a/src/siadrive/siadrivehandler.cpp b/src/siadrive/siadrivehandler.cpp index 0d6f317..71cf904 100644 --- a/src/siadrive/siadrivehandler.cpp +++ b/src/siadrive/siadrivehandler.cpp @@ -35,6 +35,14 @@ static LRESULT CALLBACK SiaWndProc(HWND wnd, UINT msg, WPARAM wparam, LPARAM lpa { switch (msg) { + case WM_GETMINMAXINFO: + { + MINMAXINFO *pMinMax = reinterpret_cast(lparam); + pMinMax->ptMaxTrackSize.x = pMinMax->ptMinTrackSize.x = 800; + pMinMax->ptMaxTrackSize.y = pMinMax->ptMinTrackSize.y = 690; + } + break; + case WM_SIA_TRAY_ICON: { switch (lparam)