Skip to content

Commit

Permalink
capitalize css
Browse files Browse the repository at this point in the history
  • Loading branch information
Allie Crevier committed Apr 11, 2019
1 parent c558229 commit a94ad8e
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions securedrop_client/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class RefreshButton(SvgPushButton):
A button that shows an icon for different refresh states.
"""

css = '''
CSS = '''
#refresh_button {
border: none;
color: #fff;
Expand All @@ -191,7 +191,7 @@ def __init__(self):
self.setObjectName('refresh_button')

# Set styles
self.setStyleSheet(self.css)
self.setStyleSheet(self.CSS)
self.setFixedSize(QSize(42, 42))

# Click event handler
Expand Down Expand Up @@ -235,7 +235,7 @@ class ActivityStatusBar(QStatusBar):
displayed for a given duration or until the message updated with a new message.
"""

css = '''
CSS = '''
#activity_status_bar {
color: #fff;
}
Expand All @@ -248,7 +248,7 @@ def __init__(self):
self.setObjectName('activity_status_bar')

# Set styles
self.setStyleSheet(self.css)
self.setStyleSheet(self.CSS)

# Remove grip image at bottom right-hand corner
self.setSizeGripEnabled(False)
Expand All @@ -266,7 +266,7 @@ class ErrorStatusBar(QWidget):
be displayed for a given duration or until the message is cleared or updated with a new message.
"""

css = '''
CSS = '''
#error_vertical_bar {
background-color: #f22b5d;
}
Expand Down Expand Up @@ -300,7 +300,7 @@ def __init__(self):
super().__init__()

# Set styles
self.setStyleSheet(self.css)
self.setStyleSheet(self.CSS)

# Set layout
layout = QHBoxLayout(self)
Expand Down Expand Up @@ -376,7 +376,7 @@ class UserProfile(QWidget):
button if the user is logged out.
"""

css = '''
CSS = '''
QLabel#user_icon {
border: none;
padding: 10px;
Expand All @@ -392,7 +392,7 @@ def __init__(self):
super().__init__()

# Set styles
self.setStyleSheet(self.css)
self.setStyleSheet(self.CSS)
self.setFixedWidth(200)

# Set layout
Expand Down Expand Up @@ -445,7 +445,7 @@ class UserButton(SvgPushButton):
This button is responsible for launching the journalist menu on click.
"""

css = '''
CSS = '''
SvgPushButton#user_button {
border: none;
padding-left: 6px;
Expand All @@ -465,7 +465,7 @@ class UserButton(SvgPushButton):
def __init__(self):
super().__init__('dropdown_arrow.svg', svg_size=QSize())

self.setStyleSheet(self.css)
self.setStyleSheet(self.CSS)
self.setFixedHeight(40)

self.setObjectName('user_button')
Expand Down Expand Up @@ -513,7 +513,7 @@ class LoginButton(QPushButton):
A button that opens a login dialog when clicked.
"""

css = '''
CSS = '''
#login {
border: none;
background-color: qlineargradient(
Expand All @@ -540,7 +540,7 @@ def __init__(self):
self.setObjectName('login')

# Set styles
self.setStyleSheet(self.css)
self.setStyleSheet(self.CSS)
self.setFixedHeight(40)

# Set drop shadow effect
Expand Down Expand Up @@ -937,7 +937,7 @@ class SpeechBubble(QWidget):
and journalist.
"""

css = "padding:8px; min-height:32px; border:1px solid #999;"
CSS = "padding:8px; min-height:32px; border:1px solid #999;"

def __init__(self, message_id: str, text: str, update_signal) -> None:
super().__init__()
Expand Down Expand Up @@ -987,14 +987,14 @@ def __init__(self,
if align != "left":
# Float right...
layout.addStretch(5)
label.setStyleSheet(label.css)
label.setStyleSheet(label.CSS)

layout.addWidget(label, 6)

if align == "left":
# Add space on right hand side...
layout.addStretch(5)
label.setStyleSheet(label.css)
label.setStyleSheet(label.CSS)

self.setLayout(layout)

Expand Down

0 comments on commit a94ad8e

Please sign in to comment.