From 7d5f7560ceed4b05d846518fb954aaaad0099ec7 Mon Sep 17 00:00:00 2001
From: hinto-janaiyo <hinto.janaiyo@protonmail.com>
Date: Sun, 22 Jan 2023 21:30:02 -0500
Subject: [PATCH] main: reduce top/bottom bar size

This should generally help some spacing issues with the UI and
prevent the [Status/P2Pool] square from expanding out.
---
 src/README.md | 4 ++--
 src/main.rs   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/README.md b/src/README.md
index 6d5caec..980b6f9 100644
--- a/src/README.md
+++ b/src/README.md
@@ -74,8 +74,8 @@ Every frame, the max available `[width, height]` are calculated, and those are u
 
 ```
 Main [App] outer frame (default: [1280.0, 960.0], 4:3 aspect ratio)
-   ├─ TopPanel     = height: 1/12th
-   ├─ BottomPanel  = height: 1/20th
+   ├─ TopPanel     = height: 1/14
+   ├─ BottomPanel  = height: 1/22
    ├─ CentralPanel = height: the rest
 ```
 
diff --git a/src/main.rs b/src/main.rs
index 7e68673..bfddb41 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1393,7 +1393,7 @@ impl eframe::App for App {
 		debug!("App | Rendering TOP tabs");
 		TopBottomPanel::top("top").show(ctx, |ui| {
 			let width = (self.width - (SPACE*10.0))/5.0;
-			let height = self.height/12.0;
+			let height = self.height/15.0;
 		    ui.add_space(4.0);
 			ui.horizontal(|ui| {
 				let style = ui.style_mut();
@@ -1417,7 +1417,7 @@ impl eframe::App for App {
 		// Bottom: app info + state/process buttons
 		debug!("App | Rendering BOTTOM bar");
 		TopBottomPanel::bottom("bottom").show(ctx, |ui| {
-			let height = self.height/20.0;
+			let height = self.height/22.0;
 			ui.style_mut().override_text_style = Some(Name("Bottom".into()));
 			ui.horizontal(|ui| {
 				ui.group(|ui| {