Skip to content

Instantly share code, notes, and snippets.

@beakr
Created December 23, 2013 05:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beakr/8091817 to your computer and use it in GitHub Desktop.
Save beakr/8091817 to your computer and use it in GitHub Desktop.
Fairly nice Qt buttons that can be easily made great with a few tweaks of the hex codes.
QPushButton {
color: white;
background-color: QLinearGradient(x1: 0, y1: 0,
x2: 0, y2: 0.15,
stop: 0 #31363a,
stop: 0.5 #2a2e32);
border: 1px solid #2a2e32;
border-radius: 10px;
}
QPushButton:hover {
background-color: QLinearGradient(x1: 0, y1: 0,
x2: 0, y2: 0.15,
stop: 0 #31363a,
stop: 0.5 #272b2f);
}
QPushButton:pressed {
background-color: QLinearGradient(x1: 0, y1: 0,
x2: 0, y2: 0.15,
stop: 0 #1e2124,
stop: 0.5 #272b2f);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment