-
-
Notifications
You must be signed in to change notification settings - Fork 164
Modernize UI with Chromium-inspired Frontend for enhanced UX #1475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,6 +1,6 @@ | ||||||||||||||||||
| QWidget { | ||||||||||||||||||
| background-color: #EAECF0; | ||||||||||||||||||
| color: #000000; | ||||||||||||||||||
| background-color: #DFE1E5; | ||||||||||||||||||
| color: #202124; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
|
|
@@ -14,7 +14,8 @@ TopWidget { | |||||||||||||||||
| margin: 0; | ||||||||||||||||||
| padding: 5px; | ||||||||||||||||||
| border: none; | ||||||||||||||||||
| border-bottom: 1px solid #ccc; | ||||||||||||||||||
| border-bottom: 1px solid #DADCE0; | ||||||||||||||||||
| background-color: #FFFFFF; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| TopWidget::separator { | ||||||||||||||||||
|
|
@@ -31,48 +32,47 @@ QToolButton { | |||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| SearchBar { | ||||||||||||||||||
| background-color: white; | ||||||||||||||||||
| background-color: #F1F3F4; | ||||||||||||||||||
| margin: 2px; /* XXX: duplicated in css_constants.h */ | ||||||||||||||||||
| border: 1px solid #ccc; /* XXX: duplicated in css_constants.h */ | ||||||||||||||||||
| border-radius: 3px; | ||||||||||||||||||
| border: none; | ||||||||||||||||||
| border-radius: 18px; | ||||||||||||||||||
|
|
||||||||||||||||||
| max-height: 40px; | ||||||||||||||||||
| max-height: 36px; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| SearchBar > QLabel#searchIcon { | ||||||||||||||||||
| padding: 0; | ||||||||||||||||||
| border: none; | ||||||||||||||||||
| background-color: none; | ||||||||||||||||||
| background-color: transparent; | ||||||||||||||||||
| margin: 0px 6px; | ||||||||||||||||||
|
|
||||||||||||||||||
| max-height: 38px; | ||||||||||||||||||
| max-width: 38px; | ||||||||||||||||||
| max-height: 36px; | ||||||||||||||||||
| max-width: 36px; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| SearchBar > SearchBarLineEdit { | ||||||||||||||||||
| background-color: white; | ||||||||||||||||||
| background-color: transparent; | ||||||||||||||||||
| margin: 0; | ||||||||||||||||||
| padding: 0; | ||||||||||||||||||
| color: #666; | ||||||||||||||||||
| color: #3C4043; | ||||||||||||||||||
| border: none; | ||||||||||||||||||
| font-size: 16px; | ||||||||||||||||||
| font-size: 15px; | ||||||||||||||||||
|
|
||||||||||||||||||
| max-height: 38px; | ||||||||||||||||||
| max-height: 36px; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| SearchBar > QToolButton { | ||||||||||||||||||
| padding: 0; | ||||||||||||||||||
| border: 0 solid #fff; | ||||||||||||||||||
| background-color: none; | ||||||||||||||||||
| max-height: 38px; | ||||||||||||||||||
| max-width: 38px; | ||||||||||||||||||
| border: none; | ||||||||||||||||||
| background-color: transparent; | ||||||||||||||||||
| max-height: 36px; | ||||||||||||||||||
| max-width: 36px; | ||||||||||||||||||
| border-radius: 18px; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| SearchBar > QToolButton:pressed, | ||||||||||||||||||
| SearchBar > QToolButton:hover { | ||||||||||||||||||
| border: 1px solid #3366CC; | ||||||||||||||||||
| background-color: #D9E9FF; | ||||||||||||||||||
| border-radius: 3px; | ||||||||||||||||||
| background-color: #E8EAED; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| MultiZimButton QListWidget { | ||||||||||||||||||
|
|
@@ -123,9 +123,9 @@ ZimItemWidget QRadioButton::indicator:checked { | |||||||||||||||||
|
|
||||||||||||||||||
| TopWidget QToolButton:pressed, | ||||||||||||||||||
| TopWidget QToolButton::hover { | ||||||||||||||||||
|
||||||||||||||||||
| TopWidget QToolButton::hover { | |
| TopWidget QToolButton:hover { |
Copilot
AI
Apr 25, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QTabBar::tab styling changed significantly (padding is now 8px 16px and border: none), but src/css_constants.h still has CSS::QTabBar::tab::padding = 4 and border = 1, which is used by src/tabbar.cpp to compute the title drawing rect in paintEvent(). With the updated CSS this will make title positioning/clipping incorrect; keep the constants and the stylesheet in sync (or remove the dependency on hard-coded CSS mirrors).
| border: none; | |
| border-top-left-radius: 12px; | |
| border-top-right-radius: 12px; | |
| padding: 8px 16px; | |
| border: 1px solid transparent; | |
| border-top-left-radius: 12px; | |
| border-top-right-radius: 12px; | |
| padding: 4px; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -115,6 +115,16 @@ | |
| </item> | ||
| </layout> | ||
| </item> | ||
| <item> | ||
| <widget class="TopWidget" name="mainToolBar"> | ||
| <property name="movable"> | ||
| <bool>false</bool> | ||
| </property> | ||
| <property name="floatable"> | ||
| <bool>false</bool> | ||
| </property> | ||
| </widget> | ||
|
Comment on lines
+119
to
+126
|
||
| </item> | ||
| <item> | ||
| <layout class="QHBoxLayout" name="horizontalLayout"> | ||
| <item> | ||
|
|
@@ -162,20 +172,6 @@ | |
| </item> | ||
| </layout> | ||
| </widget> | ||
| <widget class="TopWidget" name="mainToolBar"> | ||
| <property name="movable"> | ||
| <bool>false</bool> | ||
| </property> | ||
| <property name="floatable"> | ||
| <bool>false</bool> | ||
| </property> | ||
| <attribute name="toolBarArea"> | ||
| <enum>TopToolBarArea</enum> | ||
| </attribute> | ||
| <attribute name="toolBarBreak"> | ||
| <bool>false</bool> | ||
| </attribute> | ||
| </widget> | ||
| </widget> | ||
| <layoutdefault spacing="6" margin="11"/> | ||
| <customwidgets> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SearchBarnow setsborder: none, butsrc/css_constants.hstill definesCSS::SearchBar::border = 1and that value is used in geometry calculations (e.g.,SearchBarLineEdit::getCompleterRect()insrc/searchbar.cppandSuggestionListDelegatepositioning). This mismatch will shift/size the completer incorrectly; update the constant (and any dependent math) to reflect the new CSS border.