mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Fixes macOS layout while maintaining similar layout in linux
In macOS, in share and website mode, the text gets cut off unless it is full screen. This is mostly because of margin being applied by css. Here I have tried to implement a similar layout using qt instead of CSS so it behaves reasonably everywhere.
This commit is contained in:
parent
6eee7f9c5c
commit
d8a0e7dbff
@ -292,12 +292,10 @@ class GuiCommon:
|
|||||||
QLabel {
|
QLabel {
|
||||||
color: #4E064F;
|
color: #4E064F;
|
||||||
font-size: 48px;
|
font-size: 48px;
|
||||||
margin-bottom: 72px;
|
|
||||||
}""",
|
}""",
|
||||||
"share_file_selection_drop_here_label": """
|
"share_file_selection_drop_here_label": """
|
||||||
QLabel {
|
QLabel {
|
||||||
color: #666666;
|
color: #666666;
|
||||||
margin-bottom: 48px;
|
|
||||||
}""",
|
}""",
|
||||||
"share_file_selection_drop_count_label": """
|
"share_file_selection_drop_count_label": """
|
||||||
QLabel {
|
QLabel {
|
||||||
|
@ -72,8 +72,8 @@ class DropHereWidget(QtWidgets.QWidget):
|
|||||||
def resize(self, w, h):
|
def resize(self, w, h):
|
||||||
self.setGeometry(0, 0, w, h)
|
self.setGeometry(0, 0, w, h)
|
||||||
self.image_label.setGeometry(0, 0, w, h - 100)
|
self.image_label.setGeometry(0, 0, w, h - 100)
|
||||||
self.header_label.setGeometry(0, 340, w, h - 340)
|
self.header_label.setGeometry(0, 310, w, h - 380)
|
||||||
self.text_label.setGeometry(0, 410, w, h - 410)
|
self.text_label.setGeometry(0, 360, w, h - 400)
|
||||||
|
|
||||||
|
|
||||||
class DropCountLabel(QtWidgets.QLabel):
|
class DropCountLabel(QtWidgets.QLabel):
|
||||||
|
Loading…
Reference in New Issue
Block a user