From af64eacd3e63565c61fe0881adc70961fd124c77 Mon Sep 17 00:00:00 2001 From: David Gippner Date: Tue, 4 Jun 2024 11:54:59 +0200 Subject: [PATCH] changed font size of GUI elements for smaller screens --- CMakeLists.txt.user | 45 ++++++++++++++++++--------------------------- notantiq.css | 7 +++++++ 2 files changed, 25 insertions(+), 27 deletions(-) diff --git a/CMakeLists.txt.user b/CMakeLists.txt.user index ad41868..e664d82 100644 --- a/CMakeLists.txt.user +++ b/CMakeLists.txt.user @@ -1,10 +1,10 @@ - + EnvironmentId - {74fe2a7d-cd89-46a1-9b6f-7566a047f5c7} + {2228fd52-266b-47ff-863a-b698cdb6f475} ProjectExplorer.Project.ActiveTarget @@ -76,11 +76,9 @@ true true Builtin.DefaultTidyAndClazy - 6 + 1 true - - /Users/davidgippner/Programmierung/Qt/notatioantiqua/CMakeLists.txt - + true @@ -91,10 +89,10 @@ ProjectExplorer.Project.Target.0 Desktop - Qt6 - Qt6 - {2e2d47b9-5d97-431b-9d2b-dd3f789cba31} - 4 + Desktop + Desktop + {c3f65b7a-3fa3-45e0-8927-fc47304ecf47} + 0 0 0 @@ -109,9 +107,9 @@ -DCMAKE_PREFIX_PATH:PATH=%{Qt:QT_INSTALL_PREFIX} -DCMAKE_C_COMPILER:FILEPATH=%{Compiler:Executable:C} -DCMAKE_CXX_COMPILER:FILEPATH=%{Compiler:Executable:Cxx} --DCMAKE_CXX_FLAGS_INIT:STRING=%{Qt:QML_DEBUG_FLAG} --DCMAKE_MAKE_PROGRAM:FILEPATH=/opt/homebrew/bin/ninja - /Users/davidgippner/Programmierung/Qt/notatioantiqua/build/Qt6-Debug +-DCMAKE_CXX_FLAGS_INIT:STRING=%{Qt:QML_DEBUG_FLAG} + 0 + /home/dg/Documents/notatioantiqua/build/Desktop-Debug @@ -166,9 +164,8 @@ -DCMAKE_PREFIX_PATH:PATH=%{Qt:QT_INSTALL_PREFIX} -DCMAKE_C_COMPILER:FILEPATH=%{Compiler:Executable:C} -DCMAKE_CXX_COMPILER:FILEPATH=%{Compiler:Executable:Cxx} --DCMAKE_CXX_FLAGS_INIT:STRING=%{Qt:QML_DEBUG_FLAG} --DCMAKE_MAKE_PROGRAM:FILEPATH=/opt/homebrew/bin/ninja - /Users/davidgippner/Programmierung/Qt/notatioantiqua/build/Qt6-Release +-DCMAKE_CXX_FLAGS_INIT:STRING=%{Qt:QML_DEBUG_FLAG} + /home/dg/Documents/notatioantiqua/build/Desktop-Release @@ -178,7 +175,6 @@ false true - Erstellen CMakeProjectManager.MakeStep 1 @@ -195,7 +191,6 @@ false true - Erstellen CMakeProjectManager.MakeStep 1 @@ -224,7 +219,7 @@ -DCMAKE_C_COMPILER:FILEPATH=%{Compiler:Executable:C} -DCMAKE_CXX_COMPILER:FILEPATH=%{Compiler:Executable:Cxx} -DCMAKE_CXX_FLAGS_INIT:STRING=%{Qt:QML_DEBUG_FLAG} - /Users/davidgippner/Programmierung/Qt/notatioantiqua/build/Qt6-RelWithDebInfo + /home/dg/Documents/notatioantiqua/build/Desktop-RelWithDebInfo @@ -279,7 +274,7 @@ -DCMAKE_CXX_COMPILER:FILEPATH=%{Compiler:Executable:Cxx} -DCMAKE_CXX_FLAGS_INIT:STRING=%{Qt:QML_DEBUG_FLAG} 0 - /Users/davidgippner/Programmierung/Qt/notatioantiqua/build/Qt6-Profile + /home/dg/Documents/notatioantiqua/build/Desktop-Profile @@ -332,9 +327,8 @@ -DCMAKE_PREFIX_PATH:PATH=%{Qt:QT_INSTALL_PREFIX} -DCMAKE_C_COMPILER:FILEPATH=%{Compiler:Executable:C} -DCMAKE_CXX_COMPILER:FILEPATH=%{Compiler:Executable:Cxx} --DCMAKE_CXX_FLAGS_INIT:STRING=%{Qt:QML_DEBUG_FLAG} --DCMAKE_MAKE_PROGRAM:FILEPATH=/opt/homebrew/bin/ninja - /Users/davidgippner/Programmierung/Qt/notatioantiqua/build/Qt6-MinSizeRel +-DCMAKE_CXX_FLAGS_INIT:STRING=%{Qt:QML_DEBUG_FLAG} + /home/dg/Documents/notatioantiqua/build/Desktop-MinSizeRel @@ -344,7 +338,6 @@ false true - Erstellen CMakeProjectManager.MakeStep 1 @@ -361,7 +354,6 @@ false true - Erstellen CMakeProjectManager.MakeStep 1 @@ -396,7 +388,6 @@ true 0 true - 2 @@ -409,7 +400,7 @@ true true true - /Users/davidgippner/Programmierung/Qt/notatioantiqua/build/Qt6-MinSizeRel/notatioantiqua.app/Contents/MacOS + /home/dg/Documents/notatioantiqua/build/Desktop-Debug 1 diff --git a/notantiq.css b/notantiq.css index 0d5e403..408719d 100644 --- a/notantiq.css +++ b/notantiq.css @@ -2,6 +2,7 @@ QTabBar::tab:selected { background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #0096DB, stop: 1 #113f93); color: white; +font-size: 10px; } QTabBar::tab { background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, @@ -10,27 +11,32 @@ color: lightGray; padding: 6px; } QTabWidget::pane { border: 0; +font-size: 10px; } QDockWidget::title { /* headings of dock widgets */ background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #113f93, stop: 1 #0096db); color: white !important; text-align: center; +font-size: 10px; } QDockWidget { background-color: rgb(255, 255, 255); color: black; +font-size: 10px; } QToolButton { /* all types of tool button */ border: 2px solid #8f8f91; border-radius: 6px; padding: 3px; color: white; + font-size: 10px; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #0096db, stop: 1 #113f93); } QToolButton[popupMode="1"] { /* only for MenuButtonPopup */ + font-size: 10px; padding-right: 20px; /* make way for the popup button */ } @@ -39,4 +45,5 @@ QToolButton:pressed { stop: 0 #113f93, stop: 1 #0096DB); color: white; padding: 6px; + font-size: 10px; }