Set window height

This commit is contained in:
Jonathan Carter
2026-01-07 22:37:48 +02:00
parent f10ff43adb
commit d823bdd251
2 changed files with 3 additions and 7 deletions

View File

@@ -13,7 +13,7 @@ def on_closed():
window = webview.create_window('System Installer', LOCATION, window = webview.create_window('System Installer', LOCATION,
transparent=True, easy_drag=False, frameless=True, transparent=True, easy_drag=False, frameless=True,
width=1050, focus=True, zoomable=True, width=1050, height=650, focus=True, zoomable=True,
confirm_close=True, resizable=True, shadow=True, confirm_close=True, resizable=True, shadow=True,
text_select=False, draggable=False text_select=False, draggable=False
) )

View File

@@ -26,11 +26,7 @@
</label> </label>
--> -->
</div> </div>
<br>
<div class="columns" width="100%">
<div class="column"><p> <br>Current layout: </p></div>
</div>
<!-- <!--
<div style=""> <div style="">
<div style="background-color: gray; padding: 4px 6px 7px 6px; border-radius: 10px;"> <div style="background-color: gray; padding: 4px 6px 7px 6px; border-radius: 10px;">
@@ -106,7 +102,7 @@ fssize: {{ child['fssize'] }}
{% set colors = ['teal', '#E69F00', '#56B4E9', '#009E73', '#0072B2', '#D55E00', '#CC79A7'] %} {% set colors = ['teal', '#E69F00', '#56B4E9', '#009E73', '#0072B2', '#D55E00', '#CC79A7'] %}
<div id="percentagebar" style="width: 100%; height: 20px; background-color: white; display: inline-block; margin: 5; padding: 5; overflow: hidden; display: flex;"> <div id="percentagebar" style="width: 100%; height: 50px; background-color: white; display: inline-block; margin: 5; padding: 5; overflow: hidden; display: flex;">
{% for child in disk['children'] %} {% for child in disk['children'] %}
<div style="min-width: 100px; width: {{ (((child['size'] / disk['size'])*100)|round(0)|int) }}%; height: 100%; background-color: {{ colors[loop.index0 % colors|length] }}; display: inline-block; margin: 1; padding: 1; corners: rounded;"> <div style="min-width: 100px; width: {{ (((child['size'] / disk['size'])*100)|round(0)|int) }}%; height: 100%; background-color: {{ colors[loop.index0 % colors|length] }}; display: inline-block; margin: 1; padding: 1; corners: rounded;">
&nbsp; {{ child['name'] }} &nbsp; {{ child['name'] }}