Rename Url in statusbar to UrlText
This commit is contained in:
parent
91416e345d
commit
d3196fe683
@ -33,7 +33,7 @@ from qutebrowser.widgets.statusbar.progress import Progress
|
|||||||
from qutebrowser.widgets.statusbar.text import Text
|
from qutebrowser.widgets.statusbar.text import Text
|
||||||
from qutebrowser.widgets.statusbar.keystring import KeyString
|
from qutebrowser.widgets.statusbar.keystring import KeyString
|
||||||
from qutebrowser.widgets.statusbar.percentage import Percentage
|
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.widgets.statusbar.prompt import Prompt
|
||||||
from qutebrowser.config.style import set_register_stylesheet, get_stylesheet
|
from qutebrowser.config.style import set_register_stylesheet, get_stylesheet
|
||||||
from qutebrowser.utils.usertypes import Timer
|
from qutebrowser.utils.usertypes import Timer
|
||||||
@ -51,7 +51,7 @@ class StatusBar(QWidget):
|
|||||||
txt: The Text widget in the statusbar.
|
txt: The Text widget in the statusbar.
|
||||||
keystring: The KeyString widget in the statusbar.
|
keystring: The KeyString widget in the statusbar.
|
||||||
percentage: The Percentage 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.
|
prog: The Progress widget in the statusbar.
|
||||||
_hbox: The main QHBoxLayout.
|
_hbox: The main QHBoxLayout.
|
||||||
_stack: The QStackedLayout with cmd/txt widgets.
|
_stack: The QStackedLayout with cmd/txt widgets.
|
||||||
@ -151,7 +151,7 @@ class StatusBar(QWidget):
|
|||||||
self.keystring = KeyString()
|
self.keystring = KeyString()
|
||||||
self._hbox.addWidget(self.keystring)
|
self._hbox.addWidget(self.keystring)
|
||||||
|
|
||||||
self.url = Url()
|
self.url = UrlText()
|
||||||
self._hbox.addWidget(self.url)
|
self._hbox.addWidget(self.url)
|
||||||
|
|
||||||
self.percentage = Percentage()
|
self.percentage = Percentage()
|
||||||
|
@ -26,7 +26,7 @@ from qutebrowser.widgets.statusbar.textbase import TextBase
|
|||||||
from qutebrowser.config.style import set_register_stylesheet, get_stylesheet
|
from qutebrowser.config.style import set_register_stylesheet, get_stylesheet
|
||||||
|
|
||||||
|
|
||||||
class Url(TextBase):
|
class UrlText(TextBase):
|
||||||
|
|
||||||
"""URL displayed in the statusbar.
|
"""URL displayed in the statusbar.
|
||||||
|
|
||||||
@ -50,23 +50,23 @@ class Url(TextBase):
|
|||||||
_urltype = None
|
_urltype = None
|
||||||
|
|
||||||
STYLESHEET = """
|
STYLESHEET = """
|
||||||
QLabel#Url[urltype="normal"] {{
|
QLabel#UrlText[urltype="normal"] {{
|
||||||
{color[statusbar.url.fg]}
|
{color[statusbar.url.fg]}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
QLabel#Url[urltype="success"] {{
|
QLabel#UrlText[urltype="success"] {{
|
||||||
{color[statusbar.url.fg.success]}
|
{color[statusbar.url.fg.success]}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
QLabel#Url[urltype="error"] {{
|
QLabel#UrlText[urltype="error"] {{
|
||||||
{color[statusbar.url.fg.error]}
|
{color[statusbar.url.fg.error]}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
QLabel#Url[urltype="warn"] {{
|
QLabel#UrlText[urltype="warn"] {{
|
||||||
{color[statusbar.url.fg.warn]}
|
{color[statusbar.url.fg.warn]}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
QLabel#Url[urltype="hover"] {{
|
QLabel#UrlText[urltype="hover"] {{
|
||||||
{color[statusbar.url.fg.hover]}
|
{color[statusbar.url.fg.hover]}
|
||||||
}}
|
}}
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user