Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fork
G
github
openandroidinstaller-dev
openandroidinstaller
Commits
0290d4cd
Commit
0290d4cd
authored
1 year ago
by
Tobias Sterbak
Browse files
Options
Download
Email Patches
Plain Diff
Scale right column to window size
parent
6859a5eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
20 deletions
+22
-20
openandroidinstaller/openandroidinstaller.py
openandroidinstaller/openandroidinstaller.py
+2
-2
openandroidinstaller/views/base.py
openandroidinstaller/views/base.py
+20
-18
No files found.
openandroidinstaller/openandroidinstaller.py
View file @
0290d4cd
...
...
@@ -72,7 +72,7 @@ class MainView(UserControl):
super
().
__init__
()
self
.
state
=
state
# create the main columns
self
.
view
=
Column
(
expand
=
True
,
width
=
1200
)
self
.
view
=
Column
(
expand
=
True
)
#
, width=1200)
# create default starter views
welcome_view
=
WelcomeView
(
...
...
@@ -216,7 +216,7 @@ def log_version_infos(bin_path):
]
try
:
logger
.
info
(
f
"Heimdall version:
{
hdversion
[
1
].
strip
()
}
"
)
except
:
except
IndexError
:
logger
.
info
(
f
"Issue with heimdall:
{
hdversion
}
"
)
...
...
This diff is collapsed.
Click to expand it.
openandroidinstaller/views/base.py
View file @
0290d4cd
...
...
@@ -15,13 +15,7 @@
from
app_state
import
AppState
from
flet
import
(
Column
,
Image
,
Row
,
UserControl
,
VerticalDivider
,
)
from
flet
import
Column
,
Container
,
Image
,
Row
,
UserControl
,
VerticalDivider
,
margin
class
BaseView
(
UserControl
):
...
...
@@ -30,27 +24,35 @@ class BaseView(UserControl):
self
.
state
=
state
# configs
self
.
column_width
=
600
#
self.column_width = 600
# right part of the display, add content here.
self
.
right_view_header
=
Column
(
width
=
self
.
column_width
,
height
=
120
,
spacing
=
30
)
self
.
right_view_header
=
Column
(
spacing
=
30
)
# , width=self.column_width, height=120)
self
.
right_view
=
Column
(
alignment
=
"center"
,
width
=
self
.
column_width
,
height
=
650
,
scroll
=
"adaptive"
alignment
=
"center"
,
scroll
=
"adaptive"
,
# , width=self.column_width, height=650
)
# left part of the display: used for displaying the images
self
.
left_view
=
Column
(
width
=
self
.
column_width
,
#
width=self.column_width,
controls
=
[
Image
(
src
=
f
"/imgs/
{
image
}
"
,
height
=
600
)],
expand
=
True
,
horizontal_alignment
=
"center"
,
)
# main view row
self
.
view
=
Row
(
[
self
.
left_view
,
VerticalDivider
(),
Column
(
expand
=
True
,
controls
=
[
self
.
right_view_header
,
self
.
right_view
]),
],
alignment
=
"spaceEvenly"
,
self
.
view
=
Container
(
content
=
Row
(
[
self
.
left_view
,
VerticalDivider
(),
Column
(
expand
=
True
,
controls
=
[
self
.
right_view_header
,
self
.
right_view
]
),
],
alignment
=
"spaceEvenly"
,
),
margin
=
margin
.
only
(
left
=
10
,
top
=
0
,
right
=
50
,
bottom
=
5
),
)
def
clear
(
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment