Skip to content

fix: show Euro-Office logo in custom title bar - #39

Open
adamcolwell wants to merge 2 commits into
Euro-Office:mainfrom
adamcolwell:fix/titlebar-euro-office-logo
Open

fix: show Euro-Office logo in custom title bar#39
adamcolwell wants to merge 2 commits into
Euro-Office:mainfrom
adamcolwell:fix/titlebar-euro-office-logo

Conversation

@adamcolwell

Copy link
Copy Markdown

Summary

  • The custom title-bar main button (toolButtonMain) was blank because C++ still loads the legacy ONLYOFFICE resource :/logo.svg (with logo-light / logo-dark nodes).
  • That path is not registered in resources.qrc after the Euro-Office rebrand; only logo-light-eo / logo-dark-eo (svg/png) are packaged.
  • QSS already points at the EO assets via qproperty-icon, but CMainPanelImpl::updateScaling / applyTheme override the icon from C++ and wipe it when the open fails.

Change

  • Load :/logo-light-eo.svg / :/logo-dark-eo.svg (no sprite node) and size the icon to the EO SVG viewBox (83×20).

Test plan

  • Build Linux desktop editors with custom title bar (default).
  • Confirm top-left Euro-Office logo renders in light and dark themes.
  • Confirm logo still updates on theme switch and DPI/scale change.
  • Confirm min/max/close icons still render (unchanged).

Adam Colwell added 2 commits August 8, 2026 21:02
After rebranding, the title-bar main button still loaded the legacy
ONLYOFFICE sprite :/logo.svg with logo-light/logo-dark nodes. That
resource is not registered in resources.qrc, so CSVGPushButton failed
to open the file and left the button blank (hit target still worked).

QSS already references the packaged :/logo-*-eo.svg assets, but
updateScaling/applyTheme override qproperty-icon from C++. Point those
call sites at logo-light-eo.svg / logo-dark-eo.svg instead.
The previous logo-*-eo.svg assets used nested <svg> plus <text>. Qt's
QSvgRenderer (used by CSVGPushButton and QSS image:url) does not reliably
draw those, so the title-bar mark stayed blank even after the resource
path fix.

Regenerate light/dark logos as single-path wordmarks (Noto Sans outlines
+ document icon), refresh PNG fallbacks, and keep C++ pointed at the
packaged :/logo-*-eo.svg resources.
@adamcolwell

Copy link
Copy Markdown
Author

Follow-up pushed: the old logo-*-eo.svg files used nested <svg> + <text>, which Qt QSvgRenderer often fails to draw. Replaced with path-only logos (document mark + “Euro-Office” outlines) and refreshed PNG fallbacks used by QSS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant