Skip to content

Commit

Permalink
new set Responsive at 6/10/2020
Browse files Browse the repository at this point in the history
  • Loading branch information
elliot31878 committed Jun 10, 2020
1 parent e894bf7 commit ceadc7b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions kodiak/src/gui/dasboard/windows/main_window/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ def __setup_ui__(self):
self.li_hacktor.setAccessibleName("hacktor_logo")
is_extra_screen, extra_screen_width, extra_screen_height = MediaScreen().is_extra_large()
if is_extra_screen:
self.li_hacktor.setGeometry(QRect(25, self.height() - 80, 22, 33))
if extra_screen_height <= 800:
self.li_hacktor.hide()
else:
self.li_hacktor.setGeometry(QRect(25, self.height() - 80, 22, 33))
else:
if extra_screen_height > 800:
self.li_hacktor.setGeometry(QRect(25, self.height() - 80, 22, 33))
Expand Down Expand Up @@ -203,14 +206,14 @@ def __media_screen__(self):
is_extra_large_screen, extra_large_screen_width, extra_large_screen_height = MediaScreen().is_extra_large()

if is_extra_large_screen:
if not extra_large_screen_height <= 900:
if extra_large_screen_height <= 900:

self.setMinimumSize(QSize(extra_large_screen_width - (extra_large_screen_width / 4),
extra_large_screen_height - (extra_large_screen_height / 6)))
extra_large_screen_height - (extra_large_screen_height / 4)+100))
else:

self.setMinimumSize(QSize(extra_large_screen_width - (extra_large_screen_width / 4),
extra_large_screen_height - (extra_large_screen_height / 6)))
extra_large_screen_height - (extra_large_screen_height / 6)+50))
self.navigation_menu.setMinimumSize(QSize(71, 700))
elif is_large_screen:
self.setMinimumSize(QSize(large_screen_width - 200, large_screen_height - 90))
Expand Down

0 comments on commit ceadc7b

Please sign in to comment.