Rename Url in statusbar to UrlText

This commit is contained in:
Florian Bruhin 2014-06-20 17:40:36 +02:00
parent 91416e345d
commit d3196fe683
2 changed files with 9 additions and 9 deletions

View File

@ -33,7 +33,7 @@ from qutebrowser.widgets.statusbar.progress import Progress
from qutebrowser.widgets.statusbar.text import Text
from qutebrowser.widgets.statusbar.keystring import KeyString
from qutebrowser.widgets.statusbar.percentage import Percentage
from qutebrowser.widgets.statusbar.url import Url
from qutebrowser.widgets.statusbar.url import UrlText
from qutebrowser.widgets.statusbar.prompt import Prompt
from qutebrowser.config.style import set_register_stylesheet, get_stylesheet
from qutebrowser.utils.usertypes import Timer
@ -51,7 +51,7 @@ class StatusBar(QWidget):
txt: The Text widget in the statusbar.
keystring: The KeyString widget in the statusbar.
percentage: The Percentage widget in the statusbar.
url: The Url widget in the statusbar.
url: The UrlText widget in the statusbar.
prog: The Progress widget in the statusbar.
_hbox: The main QHBoxLayout.
_stack: The QStackedLayout with cmd/txt widgets.
@ -151,7 +151,7 @@ class StatusBar(QWidget):
self.keystring = KeyString()
self._hbox.addWidget(self.keystring)
self.url = Url()
self.url = UrlText()
self._hbox.addWidget(self.url)
self.percentage = Percentage()

View File

@ -26,7 +26,7 @@ from qutebrowser.widgets.statusbar.textbase import TextBase
from qutebrowser.config.style import set_register_stylesheet, get_stylesheet
class Url(TextBase):
class UrlText(TextBase):
"""URL displayed in the statusbar.
@ -50,23 +50,23 @@ class Url(TextBase):
_urltype = None
STYLESHEET = """
QLabel#Url[urltype="normal"] {{
QLabel#UrlText[urltype="normal"] {{
{color[statusbar.url.fg]}
}}
QLabel#Url[urltype="success"] {{
QLabel#UrlText[urltype="success"] {{
{color[statusbar.url.fg.success]}
}}
QLabel#Url[urltype="error"] {{
QLabel#UrlText[urltype="error"] {{
{color[statusbar.url.fg.error]}
}}
QLabel#Url[urltype="warn"] {{
QLabel#UrlText[urltype="warn"] {{
{color[statusbar.url.fg.warn]}
}}
QLabel#Url[urltype="hover"] {{
QLabel#UrlText[urltype="hover"] {{
{color[statusbar.url.fg.hover]}
}}
"""