Skip to content

Commit

Permalink
Fix GOLDEN_RATIO
Browse files Browse the repository at this point in the history
Signed-off-by: Loren Eteval <[email protected]>
  • Loading branch information
LorenEteval committed Sep 14, 2023
1 parent aa5cc3b commit 082386a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Furious/Utility/Constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

LOCAL_SERVER_NAME = '891ad49d-8996-43cb-820c-d9baf42a04de'

GOLDEN_RATIO = (math.sqrt(5) - 1) / 2
GOLDEN_RATIO = (math.sqrt(5) + 1) / 2

SYSTEM_LANGUAGE = QtCore.QLocale().name()[:2].upper()

Expand Down
2 changes: 1 addition & 1 deletion Furious/Widget/AssetViewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def show(self):
self.setWidthAndHeight()

def setWidthAndHeight(self):
self.setGeometry(100, 100, 512 * GOLDEN_RATIO, 512)
self.setGeometry(100, 100, 360, 360 * GOLDEN_RATIO)

moveToCenter(self)

Expand Down
4 changes: 2 additions & 2 deletions Furious/Widget/ConnectingProgressBar.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

from Furious.Utility.Constants import APPLICATION_NAME, GOLDEN_RATIO, Color
from Furious.Utility.Constants import APPLICATION_NAME, Color
from Furious.Utility.Utility import (
bootstrapIcon,
StateContext,
Expand All @@ -33,7 +33,7 @@ def __init__(self, parent=None):

self.setWindowTitle(_(APPLICATION_NAME))
self.setWindowIcon(bootstrapIcon('rocket-takeoff-window.svg'))
self.setFixedSize(280, int(100 * GOLDEN_RATIO))
self.setFixedSize(280, 61)

@QtCore.Slot()
def updateProgressBar():
Expand Down
7 changes: 3 additions & 4 deletions Furious/Widget/EditConfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
APPLICATION_REPO_OWNER_NAME,
APPLICATION_REPO_NAME,
PLATFORM,
GOLDEN_RATIO,
Color,
)
from Furious.Utility.Utility import (
Expand Down Expand Up @@ -1767,8 +1766,8 @@ def handleCursorPositionChanged():
self.splitter = QSplitter(QtCore.Qt.Orientation.Horizontal)
self.splitter.addWidget(self.serverTab)
self.splitter.addWidget(self.editorTab)
self.splitter.setStretchFactor(0, 1)
self.splitter.setStretchFactor(1, 1)
self.splitter.setStretchFactor(0, 8)
self.splitter.setStretchFactor(1, 5)

self.fakeCentralWidget = QWidget()

Expand Down Expand Up @@ -1877,7 +1876,7 @@ def setWidthAndHeight(self):
except Exception:
# Any non-exit exceptions

self.setGeometry(100, 100, 1568, 1568 * GOLDEN_RATIO)
self.setGeometry(100, 100, 1800, 960)

moveToCenter(self)

Expand Down
2 changes: 1 addition & 1 deletion Furious/Widget/EditRouting.py
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,7 @@ def setWidthAndHeight(self):
except Exception:
# Any non-exit exceptions

self.setGeometry(100, 100, 640, 640 * GOLDEN_RATIO)
self.setGeometry(100, 100, 360 * GOLDEN_RATIO, 360)

moveToCenter(self)

Expand Down

0 comments on commit 082386a

Please sign in to comment.