-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Theme variables and Positron Scheme #691
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this looks very good. We will merge it after the next round of changes.
basemap/layers/aerialway/style.js
Outdated
@@ -9,6 +9,8 @@ | |||
or implied. See the License for the specific language governing permissions and limitations under | |||
the License. | |||
**/ | |||
import colorScheme from "../../theme.js"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you rename colorScheme into theme. We will eventually have more than a color scheme in the theme.
basemap/config.js
Outdated
@@ -12,7 +12,7 @@ | |||
export default { | |||
"host": "http://localhost:9000", | |||
"database": "jdbc:postgresql://localhost:5432/baremaps?&user=baremaps&password=baremaps", | |||
"osmPbfUrl": "https://download.geofabrik.de/europe/switzerland-latest.osm.pbf", | |||
"center": [6.6323, 46.5197], | |||
"osmPbfUrl": "https://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you keep the original file here (switzerland-latest.osm.pbf).
basemap/layers/aeroway/line.js
Outdated
@@ -10,16 +10,18 @@ | |||
the License. | |||
**/ | |||
import {asLayerObject, withSortKeys} from "../../utils/utils.js"; | |||
import colorScheme from "../../theme.js"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename colorScheme
basemap/layers/aeroway/polygon.js
Outdated
@@ -10,11 +10,12 @@ | |||
the License. | |||
**/ | |||
import {asLayerObject, withSortKeys} from "../../utils/utils.js"; | |||
import colorScheme from "../../theme.js"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename colorScheme
basemap/layers/amenity/background.js
Outdated
@@ -10,31 +10,32 @@ | |||
the License. | |||
**/ | |||
import {asLayerObject, withSortKeys} from "../../utils/utils.js"; | |||
import colorScheme from "../../theme.js"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename colorScheme
basemap/layers/barrier/style.js
Outdated
@@ -9,6 +9,8 @@ | |||
or implied. See the License for the specific language governing permissions and limitations under | |||
the License. | |||
**/ | |||
import colorScheme from "../../theme.js"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename colorScheme
basemap/themes/default.js
Outdated
@@ -0,0 +1,608 @@ | |||
export default { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sort lines alphabetically
basemap/themes/default.js
Outdated
landuseOverlayOrchardFillColor: 'rgb(172, 225, 161)', | ||
pointCountryLabelCountryTextColor: 'rgb(90, 56, 90)', | ||
pointCountryLabelPaintTextHaloColor: 'rgba(255, 255, 255, 0.8)', | ||
LeisureBackgroundSwimmingPoolFillColor: 'rgb(170, 211, 223)', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change the case
basemap/themes/light.js
Outdated
import * as importedTools from "./tools.js"; | ||
import positronScheme from "./positron.js"; | ||
|
||
const CLARITYFACTOR=4.7; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Format code with intellij
5ed2549
to
fce7735
Compare
Kudos, SonarCloud Quality Gate passed! |
Thanks a lot for the changes, this is a great addition to the project! |
List color variables and add a positron scheme