image: Use const for RGBA::new
This commit is contained in:
parent
88a617d99e
commit
41c26daba2
2 changed files with 11 additions and 12 deletions
|
|
@ -35,17 +35,17 @@ impl imp::LpImage {
|
|||
|
||||
pub fn default_background_color() -> gdk::RGBA {
|
||||
if adw::StyleManager::default().is_dark() {
|
||||
*BACKGROUND_COLOR_DEFAULT
|
||||
BACKGROUND_COLOR_DEFAULT
|
||||
} else {
|
||||
*BACKGROUND_COLOR_DEFAULT_LIGHT_MODE
|
||||
BACKGROUND_COLOR_DEFAULT_LIGHT_MODE
|
||||
}
|
||||
}
|
||||
|
||||
pub fn alternate_background_color() -> gdk::RGBA {
|
||||
if adw::StyleManager::default().is_dark() {
|
||||
*BACKGROUND_COLOR_ALTERNATE
|
||||
BACKGROUND_COLOR_ALTERNATE
|
||||
} else {
|
||||
*BACKGROUND_COLOR_ALTERNATE_LIGHT_MODE
|
||||
BACKGROUND_COLOR_ALTERNATE_LIGHT_MODE
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue