Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Commit

Permalink
Merge pull request #146 from balcy/xenial_-_tabtheme
Browse files Browse the repository at this point in the history
Theme support for the tab list (Rectangle instead of BorderImage) and current zoom text. Fixes #142
  • Loading branch information
dobey authored Feb 8, 2019
2 parents 102e6c6 + 1c6c7e0 commit 490782b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/app/WebViewImpl.qml
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@ WebView {
anchors.top: zoomActionsRow.bottom
anchors.right: zoomActionsRow.right
text: i18n.tr("Current Zoom") + ": " + Math.round(zoomController.currentZoomFactor * 100) + "%"
color: theme.palette.normal.backgroundText
width: zoomActionsRow.width
horizontalAlignment: Text.AlignHCenter
}
Expand Down
9 changes: 4 additions & 5 deletions src/app/webbrowser/TabItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,13 @@ Item {
signal closed()
signal contextMenu()

BorderImage {
Rectangle {
id: tabImage
anchors.fill: parent
anchors.rightMargin: tabItem.rightMargin
source: "assets/tab-%1%2.sci".arg((active) ? "active" :
(hoverArea.containsMouse ? "hover" : "non-active"))
.arg(touchEnabled ? "" : "-desktop")
asynchronous: true
color: theme.palette.normal.background
border.color: theme.palette.normal.base
radius: units.gu(0.5)

Favicon {
id: favicon
Expand Down

0 comments on commit 490782b

Please sign in to comment.