forked from openhab/openhab-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add chart theme with transparent background
Currently the background of the dark theme differs from the background color of the Android app. With a transparent background, it'll be the same. The version bump is required so the app can use the current `dark` theme for older versions of the server. Closes openhab#1183
- Loading branch information
1 parent
241a4f6
commit 81ce0f4
Showing
3 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...va/org/openhab/core/ui/internal/chart/defaultchartprovider/ChartThemeDarkTransparent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* Copyright (c) 2010-2021 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.core.ui.internal.chart.defaultchartprovider; | ||
|
||
import java.awt.*; | ||
|
||
/** | ||
* Implementation of the dark {@link ChartTheme chart theme} with transparent background. | ||
*/ | ||
public class ChartThemeDarkTransparent extends ChartThemeDark { | ||
|
||
private static final String THEME_NAME = "dark_transparent"; | ||
|
||
@Override | ||
public String getThemeName() { | ||
return THEME_NAME; | ||
} | ||
|
||
@Override | ||
public Color getPlotBackgroundColor() { | ||
return new Color(0, 0, 0, 0); | ||
} | ||
|
||
@Override | ||
public Color getChartBackgroundColor() { | ||
return new Color(0, 0, 0, 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters