[styles] Colored labels

Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
x7z4w
2025-08-07 11:43:39 +00:00
committed by Harry Bond
parent ae85b79c33
commit ca4b75dc51
3 changed files with 244 additions and 11 deletions

View File

@@ -226,6 +226,13 @@
@poi_label: #8C8C8C;
@subway_label: #9E9E9E;
@indigenous_label: #6A512F;
@shop_label: #8C5F93;
@food_label: #BB9342;
@culture_label: #7F5933;
@hotel_label: #6D544C;
@healthcare_label: #C15746;
@industry_label: #717065;
@public_transport_label: #2F6499;
/* 6.4 Road labels */

View File

@@ -22,6 +22,7 @@
6.1 Craft
7.CAR
7.1 Parking
8. COLORED LABELS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
@@ -43,7 +44,7 @@ node|z18-[office],
{icon-image: office-m.svg;}
node|z18-[craft],
{icon-image: craft-m.svg;}
{text-color: @shop_label;text-halo-radius: 1;text-halo-opacity: 0.9;text-halo-color: @label_halo_light;icon-image: craft-m.svg;}
node|z16-[shop],
{icon-min-distance: 10;}
@@ -204,30 +205,30 @@ node|z19-[amenity=water_point][drinking_water=not],
node|z12-[railway=station],
node|z13-[railway=halt],
{text: name;text-color: @label_dark;text-halo-radius: 1;text-halo-opacity: 0.6;text-halo-color: @label_halo_light;}
{text: name;text-color: @public_transport_label;text-halo-radius: 1;text-halo-opacity: 0.6;text-halo-color: @label_halo_light;}
node|z12-[railway=station]::int_name,
node|z13-[railway=halt]::int_name,
{text: int_name;text-color: @label_dark;text-halo-radius: 1;text-halo-opacity: 0.6;text-halo-color: @label_halo_light;}
{text: int_name;text-color: @public_transport_label;text-halo-radius: 1;text-halo-opacity: 0.6;text-halo-color: @label_halo_light;}
node|z17-[railway=tram_stop],
{text: name;text-color: @label_dark;text-halo-radius: 1;text-halo-opacity: 1;text-halo-color: @label_halo_light;}
{text: name;text-color: @public_transport_label;text-halo-radius: 1;text-halo-opacity: 1;text-halo-color: @label_halo_light;}
node|z17-[railway=tram_stop]::int_name,
{text: int_name;text-color: @label_dark;text-halo-radius: 1;text-halo-opacity: 1;text-halo-color: @label_halo_light;}
{text: int_name;text-color: @public_transport_label;text-halo-radius: 1;text-halo-opacity: 1;text-halo-color: @label_halo_light;}
node|z17-[highway=bus_stop],
node|z14-[amenity=bus_station],
{text: name;text-color: @label_dark;text-halo-radius: 1;text-halo-opacity: 0.9;text-halo-color: @label_halo_light;text-position: center;}
{text: name;text-color: @public_transport_label;text-halo-radius: 1;text-halo-opacity: 0.9;text-halo-color: @label_halo_light;text-position: center;}
node|z17-[highway=bus_stop]::int_name,
node|z14-[amenity=bus_station]::int_name,
{text: int_name;text-color: @label_dark;text-halo-radius: 1;text-halo-opacity: 0.9;text-halo-color: @label_halo_light;text-position: center;}
{text: int_name;text-color: @public_transport_label;text-halo-radius: 1;text-halo-opacity: 0.9;text-halo-color: @label_halo_light;text-position: center;}
node|z10-[aeroway=aerodrome][aerodrome=international],
node|z14-[aeroway=aerodrome],
node|z15-[aerialway=station],
node|z16-[amenity=ferry_terminal]
{text: name;text-color: @label_dark;text-halo-radius: 1;text-halo-opacity: 0.7;text-halo-color: @label_halo_light;text-position: center;}
{text: name;text-color: @public_transport_label;text-halo-radius: 1;text-halo-opacity: 0.7;text-halo-color: @label_halo_light;text-position: center;}
node|z12-[aeroway=aerodrome][aerodrome=international]::int_name,
node|z14-[aeroway=aerodrome]::int_name,
{text: int_name;text-color: @label_dark;text-halo-radius: 1;text-halo-opacity: 0.7;text-halo-color: @label_halo_light;text-position: center;}
{text: int_name;text-color: @public_transport_label;text-halo-radius: 1;text-halo-opacity: 0.7;text-halo-color: @label_halo_light;text-position: center;}
/* 3.1 Train Station */
@@ -347,7 +348,10 @@ node|z14-[aeroway=aerodrome]::int_name,
{font-size: 11;}
node|z16-[aeroway=helipad],
{icon-image: helipad-m.svg;text-offset: 1;font-size: 10;text: name;text-color: @poi_label;}
{icon-image: helipad-m.svg;text-offset: 1;font-size: 10;text: name;text-color: @public_transport_label;text-halo-radius: 1;text-halo-opacity: 0.9;text-halo-color: @label_halo_light;}
node[aerialway=station]
{text-color: @public_transport_label;text-halo-radius: 1;text-halo-opacity: 0.9;text-halo-color: @label_halo_light;}
/* 3.7 Aerialway */
@@ -1363,7 +1367,7 @@ node|z18-[power=generator][generator:source=wind],
node|z15-[power=plant][plant:source=wind],
{icon-image: power_plant_wind-m.svg;}
node|z16-[power=plant][plant:source=wind],
{text: name;text-color: @poi_label; text-offset: 1; font-size: 10;}
{text: name;text-color: @industry_label;text-halo-radius: 1;text-halo-opacity: 0.9;text-halo-color: @label_halo_light; text-offset: 1; font-size: 10;}
node|z17-[amenity=shower],
{icon-image: shower-m.svg;}
@@ -2063,3 +2067,218 @@ node|z17-[amenity=motorcycle_parking],
node|z18-[amenity=parking_space][parking_space=disabled],
{icon-image: parking-disabled-m.svg;}
/* 8. Colored Labels */
node[shop=mall],
node[shop=car_repair][service=tyres],
node[amenity=studio],
node[shop=alcohol],
node[shop=antiques],
node[shop=art],
node[shop=bakery],
node[shop=beauty],
node[shop=beverages],
node[shop=bicycle],
node[shop=bookmaker],
node[shop=books],
node[shop=butcher],
node[shop=camera],
node[shop=car],
node[shop=caravan],
node[shop=charity],
node[shop=cheese],
node[shop=chemist],
node[shop=chocolate],
node[shop=clothes],
node[shop=computer],
node[shop=confectionery],
node[shop=convenience],
node[shop=copyshop],
node[shop=cosmetics],
node[shop=deli],
node[shop=department_store],
node[shop=doityourself],
node[shop=dry_cleaning],
node[shop=electronics],
node[shop=erotic],
node[shop=farm],
node[shop=florist],
node[shop=furniture],
node[shop=garden_centre],
node[shop=gift],
node[shop=greengrocer],
node[shop=grocery],
node[shop=hairdresser],
node[shop=hardware],
node[shop=health_food],
node[shop=houseware],
node[shop=interior_decoration],
node[shop=jewelry],
node[shop=kiosk],
node[shop=kitchen],
node[shop=laundry],
node[amenity=marketplace],
node[shop=mobile_phone],
node[shop=motorcycle],
node[shop=music],
node[shop=musical_instrument],
node[shop=optician],
node[shop=outdoor],
node[shop=pasta],
node[shop=pastry],
node[shop=pet],
node[shop=photo],
node[shop=rental],
node[shop=rental][rental=bike],
node[shop=seafood],
node[shop=second_hand],
node[shop=sewing],
node[shop=shoes],
node[shop=sports],
node[shop=stationery],
node[shop=supermarket],
node[shop=tattoo],
node[shop=ticket],
node[shop=toys],
node[shop=tyres],
node[shop=video],
node[shop=video_games],
node[shop=wine],
node[leisure=bowling_alley],
node[shop=variety_store],
node[amenity=internet_cafe],
node[shop],
node[shop=auction],
node[shop=collector],
node[shop=fabric],
node[shop=funeral_directors],
node[shop=hearing_aids],
node[shop=lottery],
node[shop=tobacco],
node[shop=wholesale],
{text-color: @shop_label;text-halo-radius: 0.1;text-halo-opacity: 0.7;text-halo-color: @label_halo_light;}
node[amenity=bar],
node[amenity=biergarten],
node[amenity=cafe],
node[amenity=fast_food],
node[amenity=food_court],
node[amenity=pub],
node[amenity=restaurant],
node[amenity=ice_cream],
node[amenity=nightclub],
node[amenity=stripclub],
{text-color: @food_label;text-halo-radius: 0.1;text-halo-opacity: 0.7;text-halo-color: @label_halo_light;}
node[amenity=arts_centre],
node[amenity=cinema],
node[amenity=community_centre],
node[amenity=place_of_worship]
node[amenity=social_facility],
node[amenity=theatre],
node[attraction=amusement_ride],
node[attraction=animal],
node[attraction=big_wheel],
node[attraction=bumper_car],
node[attraction=carousel],
node[attraction=historic],
node[attraction=maze],
node[attraction=roller_coaster],
node[leisure=escape_game],
node[leisure=stadium],
node[tourism=aquarium],
node[tourism=attraction],
node[tourism=gallery],
node[tourism=museum],
node[tourism=theme_park],
node[tourism=zoo]
node[tourism=zoo],
node[historic=ship],
node[amenity=conference_centre],
node[amenity=events_venue],
node[amenity=exhibition_centre],
node[leisure=marina],
node[amenity=casino],
node[amenity=gambling],
node[amenity=public_bath],
node[leisure=adult_gaming_centre],
node[leisure=amusement_arcade],
node[shop=massage],
{text-color: @culture_label;text-halo-radius: 0.1;text-halo-opacity: 0.7;text-halo-color: @label_halo_light;}
node[tourism=alpine_hut],
node[leisure=resort],
node[tourism=apartment],
node[tourism=chalet],
node[tourism=guest_house],
node[tourism=hostel],
node[tourism=hotel],
node[tourism=motel],
node[tourism=wilderness_hut],
{text-color: @hotel_label;text-halo-radius: 0.1;text-halo-opacity: 0.7;text-halo-color: @label_halo_light;}
area[amenity=hospital],
node[amenity=clinic],
node[amenity=dentist],
node[amenity=doctors],
node[amenity=hospital],
node[amenity=pharmacy],
node[amenity=veterinary],
node[healthcare],
{text-color: @healthcare_label;text-halo-radius: 0.1;text-halo-opacity: 0.7;text-halo-color: @label_halo_light;}
area[amenity=university][name]
node[aeroway=gate],
node[amenity=atm],
node[amenity=bank],
node[amenity=bureau_de_change],
node[amenity=charging_station][motorcar?],
node[amenity=childcare],
node[amenity=college],
node[amenity=courthouse],
node[amenity=driving_school],
node[amenity=kindergarten],
node[amenity=language_school],
node[amenity=library],
node[amenity=money_transfer],
node[amenity=music_school],
node[amenity=nursing_home],
node[amenity=police],
node[amenity=post_office],
node[amenity=prison],
node[amenity=school],
node[amenity=townhall],
node[amenity=university][name],
node[barrier=border_control],
node[leisure=beach_resort],
node[leisure=hackerspace],
node[office],
node[amenity=fuel],
node[landuse=industrial][industrial=mine],
node[landuse=quarry],
node[tourism=information][information=office],
node[amenity=vehicle_inspection],
node[shop=car_parts],
node[shop=car_repair],
node[shop=dry_cleaning],
node[shop=laundry],
node[shop=motorcycle_repair],
node[amenity=car_wash],
node[amenity=motorcycle_rental],
node[leisure=dance],
node[leisure=fitness_centre],
node[leisure=sports_centre],
node[leisure=sports_hall],
node[man_made=works],
node[shop=money_lender],
node[shop=pawnbroker],
node[sport=yoga],
node[amenity=car_rental],
node[amenity=car_sharing],
node[amenity=fire_station],
{text-color: @industry_label;text-halo-radius: 0.1;text-halo-opacity: 0.7;text-halo-color: @label_halo_light;}
node[amenity=bicycle_rental],
node[amenity=taxi],
{text-color: @public_transport_label;text-halo-radius: 0.1;text-halo-opacity: 0.7;text-halo-color: @label_halo_light;}

View File

@@ -224,6 +224,13 @@
@poi_label: #444444;
@subway_label: #333333;
@indigenous_label: #6A512F;
@shop_label: #8C5678;
@food_label: #BA7141;
@culture_label: #82512D;
@hotel_label: #54413B;
@healthcare_label: #A6454B;
@industry_label: #494F54;
@public_transport_label: #1F4366;
/* 6.4 Road labels */