Skip to content

Commit b63c0de

Browse files
committed
Improve the Qt customized title bar
Smaller logo and use text for the 'home' link. Fixe the "_" appearing when hovering the link. Also aligns us a bit more with upstream. Fixes: QTQAINFRA-2973 Change-Id: Ifaffc5082e52fda8375f131fd9b227e9148a4840 Reviewed-by: Jukka Jokiniva <[email protected]> Reviewed-by: Tor Arne Vestbø <[email protected]>
1 parent 6b6abb7 commit b63c0de

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

qt-gerrit-ui-plugin/qt-gerrit-ui-plugin.html

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,25 +47,19 @@
4747
// Customize header
4848
plugin.hook('header-title', {replace: true} ).onAttached(element => {
4949
const css_str = '<style> \
50-
#qt-header ul { \
51-
width: 100%; \
52-
margin: 0; \
53-
text-align: left; \
54-
padding: 0.5em 0 .1em 0; \
55-
} \
56-
#qt-header li { \
57-
display: inline; \
58-
padding: 0.3em; \
59-
} \
60-
#qt-header img { \
61-
vertical-align: top; \
62-
} \
63-
</style>';
50+
.titleText::before {\
51+
background-image: url(http://github.com/"/static/logo_qt.png");\
52+
background-size: 40px 30px;\
53+
background-repeat: no-repeat;\
54+
content: "";\
55+
display: inline-block;\
56+
height: 36px;\
57+
vertical-align: text-top;\
58+
width: 46px;\
59+
}\
60+
</style>';
6461
const html_str = '<div id="qt-header"> \
65-
<ul> \
66-
<li><img src="/static/logo_qt.png"/></li> \
67-
<li><img src="/static/logo_open_gov.png"/></li> \
68-
</ul> \
62+
<div class="titleText">Code Review</div> \
6963
</div>';
7064
var elem = htmlToElement(css_str);
7165
element.appendChild(elem);

0 commit comments

Comments
 (0)