mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
remove gradients from toolbars in favour of system colour
This commit is contained in:
parent
a3fa2ff5ba
commit
1b41e68f05
1 changed files with 5 additions and 6 deletions
|
@ -29,12 +29,13 @@ class Toolbar:
|
||||||
def draw(self):
|
def draw(self):
|
||||||
self.web.onBridgeCmd = self._linkHandler
|
self.web.onBridgeCmd = self._linkHandler
|
||||||
self.web.onLoadFinished = self.onLoaded
|
self.web.onLoadFinished = self.onLoaded
|
||||||
|
bgcol = QApplication.instance().palette().window().color().name()
|
||||||
self.web.stdHtml(self._body % (
|
self.web.stdHtml(self._body % (
|
||||||
# may want a context menu here in the future
|
# may want a context menu here in the future
|
||||||
' '*20,
|
' '*20,
|
||||||
self._centerLinks(),
|
self._centerLinks(),
|
||||||
self._rightIcons()),
|
self._rightIcons()),
|
||||||
self._css)
|
self._css % bgcol)
|
||||||
|
|
||||||
# Available links
|
# Available links
|
||||||
######################################################################
|
######################################################################
|
||||||
|
@ -122,8 +123,7 @@ class Toolbar:
|
||||||
padding:3px;
|
padding:3px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
border-bottom: 1px solid #aaa;
|
border-bottom: 1px solid #aaa;
|
||||||
background: -webkit-gradient(linear, left top, left bottom,
|
background: %s;
|
||||||
from(#ddd), to(#fff));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
@ -149,8 +149,6 @@ class BottomBar(Toolbar):
|
||||||
|
|
||||||
_css = Toolbar._css + """
|
_css = Toolbar._css + """
|
||||||
#header {
|
#header {
|
||||||
background: -webkit-gradient(linear, left top, left bottom,
|
|
||||||
from(#fff), to(#ddd));
|
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
border-top: 1px solid #aaa;
|
border-top: 1px solid #aaa;
|
||||||
margin-bottom: 6px;
|
margin-bottom: 6px;
|
||||||
|
@ -166,6 +164,7 @@ margin-top: 0;
|
||||||
def draw(self, buf):
|
def draw(self, buf):
|
||||||
self.web.onBridgeCmd = self._linkHandler
|
self.web.onBridgeCmd = self._linkHandler
|
||||||
self.web.onLoadFinished = self.onLoaded
|
self.web.onLoadFinished = self.onLoaded
|
||||||
|
bgcol = QApplication.instance().palette().window().color().name()
|
||||||
self.web.stdHtml(
|
self.web.stdHtml(
|
||||||
self._centerBody % buf,
|
self._centerBody % buf,
|
||||||
self._css)
|
self._css % bgcol)
|
||||||
|
|
Loading…
Reference in a new issue