mirror of
https://github.com/hinto-janai/gupax.git
synced 2024-11-17 01:37:52 +00:00
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.
This commit is contained in:
parent
94839a0943
commit
786b300623
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
```
|
||||
|
||||
|
|
|
@ -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| {
|
||||
|
|
Loading…
Reference in a new issue