Skip to content

Commit

Permalink
keep original logo as is and add another one without padding to use on
Browse files Browse the repository at this point in the history
the toolbar
  • Loading branch information
alexbruy authored and wonder-sk committed May 3, 2022
1 parent 756cfb2 commit d4bdd43
Show file tree
Hide file tree
Showing 3 changed files with 169 additions and 1 deletion.
Binary file removed Mergin/images/mm_logo.png
Binary file not shown.
168 changes: 168 additions & 0 deletions Mergin/images/mm_logo_no_padding.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Mergin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def initGui(self):
layout = QHBoxLayout()
layout.setContentsMargins(0, 0, 0, 0)
lbl_logo = QLabel()
pix = QPixmap(icon_path("mm_logo.svg", False))
pix = QPixmap(icon_path("mm_logo_no_padding.svg", False))
lbl_logo.setPixmap(pix.scaledToHeight(self.toolbar.iconSize().height(), Qt.SmoothTransformation))
layout.addWidget(lbl_logo)
layout.addSpacing(self.toolbar.iconSize().width() / 2)
Expand Down

0 comments on commit d4bdd43

Please sign in to comment.