Skip to content

Commit a8fcbc8

Browse files
authored
Rework marker feature. (#8)
This PR reworks the implementation of marker features to be able to render marker casings in the correct render step. It also adds the ability to mark markers as applicable to specific tracks only. By accident, the PR also changes the electrification colours.
1 parent 3e2972e commit a8fcbc8

File tree

10 files changed

+2160
-1498
lines changed

10 files changed

+2160
-1498
lines changed

Cargo.lock

Lines changed: 181 additions & 276 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/color-style.svg

Lines changed: 41 additions & 35 deletions
Loading

src/railway/colors/el.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,12 @@ impl Default for Colors {
207207

208208
//------------ Color Constants -----------------------------------------------
209209

210-
const NONE: &str = "5a3a29ff";
211-
const AC_HIGH: &str = "6c2b86ff";
212-
const AC_LOW: &str = "812c5cff";
213-
const DC_HIGH: &str = "9b2321ff";
214-
const DC_LOW: &str = "b64f0dff";
215-
const RAIL: &str = "007e40ff";
216-
const FOUR: &str = "53633bff";
217-
const TRAM: &str = "005387ff";
210+
const NONE: &str = "452d20ff";
211+
const AC_HIGH: &str = "7700d2ff";
212+
const AC_LOW: &str = "ba048fff";
213+
const DC_HIGH: &str = "d30000ff";
214+
const DC_LOW: &str = "e56a00ff";
215+
const RAIL: &str = "029b3eff";
216+
const FOUR: &str = "697d4cff";
217+
const TRAM: &str = "005f9aff";
218218

src/railway/feature/guide.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use crate::railway::import::eval::Scope;
1111
use crate::railway::style::Style;
1212
use super::{AnyShape, Category, Group, Feature, Shape, Stage, StageSet};
1313

14+
1415
//------------ GuideContour --------------------------------------------------
1516

1617
/// A contour drawing a guide.

0 commit comments

Comments
 (0)