Compare commits

..

1 Commits

Author SHA1 Message Date
x7z4w
371ffc9670 [build] Add cache for Desktop UI strings
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
2026-01-22 13:40:00 +01:00
14 changed files with 26 additions and 38 deletions

View File

@@ -268,7 +268,6 @@ android {
"da",
"de",
"el",
"en-rAU",
"en-rGB",
"es",
"es-rMX",

View File

@@ -42,7 +42,7 @@ public class ChooseBookmarkCategoryFragment
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
{
View root = inflater.inflate(R.layout.choose_bookmark_category_fragment, container, false);
getDialog().getWindow().setBackgroundDrawableResource(R.drawable.bg_transparent_dlg);
getDialog().getWindow().setBackgroundDrawableResource(android.R.color.transparent);
mRecycler = root.findViewById(R.id.recycler);
mRecycler.setLayoutManager(new LinearLayoutManager(requireActivity()));
return root;

View File

@@ -77,7 +77,7 @@ public class ChooseBookmarksSortingTypeFragment
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState)
{
super.onViewCreated(view, savedInstanceState);
getDialog().getWindow().setBackgroundDrawableResource(R.drawable.bg_transparent_dlg);
getDialog().getWindow().setBackgroundDrawableResource(android.R.color.transparent);
final Bundle args = getArguments();
if (args == null)

View File

@@ -61,7 +61,7 @@ public class StackedButtonsDialog extends AppCompatDialog implements View.OnClic
setCancelable(mCancelable);
setOnCancelListener(mCancelListener);
setContentView(R.layout.dialog_stacked_buttons);
getWindow().setBackgroundDrawableResource(R.drawable.bg_transparent_dlg);
getWindow().setBackgroundDrawableResource(android.R.color.transparent);
TextView title = findViewById(R.id.tv__title);
UiUtils.setTextAndHideIfEmpty(title, mTitle);

View File

@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@android:color/transparent"/>
<corners android:radius="28dp"/>
</shape>

View File

@@ -13,7 +13,6 @@
<locale android:name="da" />
<locale android:name="de" />
<locale android:name="el" />
<locale android:name="en-AU" />
<locale android:name="en-GB" />
<locale android:name="es" />
<locale android:name="es-MX" />

View File

@@ -8,9 +8,11 @@ echo "Configuring the repository for development..."
SKIP_MAP_DOWNLOAD="${SKIP_MAP_DOWNLOAD:-}"
SKIP_GENERATE_SYMBOLS="${SKIP_GENERATE_SYMBOLS:-}"
SKIP_GENERATE_DRULES="${SKIP_GENERATE_DRULES:-}"
SKIP_GENERATE_STRINGS="${SKIP_GENERATE_STRINGS:-}"
DRULES_NOT_GENERATED=
SYMBOLS_NOT_GENERATED=
STRINGS_NOT_GENERATED=
DRULES_FILES=(drules_proto.bin drules_proto_default_dark.bin drules_proto_default_light.bin drules_proto_outdoors_dark.bin drules_proto_outdoors_light.bin drules_proto_vehicle_dark.bin drules_proto_vehicle_light.bin classificator.txt types.txt visibility.txt colors.txt patterns.txt)
SYMBOLS_FILES=(xhdpi/light/symbols.png xhdpi/light/symbols.sdf xhdpi/dark/symbols.png xhdpi/dark/symbols.sdf mdpi/light/symbols.png mdpi/light/symbols.sdf mdpi/dark/symbols.png mdpi/dark/symbols.sdf 6plus/light/symbols.png 6plus/light/symbols.sdf 6plus/dark/symbols.png 6plus/dark/symbols.sdf xxxhdpi/light/symbols.png xxxhdpi/light/symbols.sdf xxxhdpi/dark/symbols.png xxxhdpi/dark/symbols.sdf hdpi/light/symbols.png hdpi/light/symbols.sdf hdpi/dark/symbols.png hdpi/dark/symbols.sdf xxhdpi/light/symbols.png xxhdpi/light/symbols.sdf xxhdpi/dark/symbols.png xxhdpi/dark/symbols.sdf)
@@ -29,6 +31,11 @@ for f in ${SYMBOLS_FILES[*]}; do
fi
done
if [ ! -f "libs/indexer/localized_types_map.cpp" ]; then
STRINGS_NOT_GENERATED=1
break
fi
############################# PROCESS OPTIONS ################################
TEMP=$(getopt -o ms --long skip-map-download,skip-generate-symbols,skip-generate-drules \
@@ -43,6 +50,7 @@ while true; do
-m | --skip-map-download ) SKIP_MAP_DOWNLOAD=1; shift ;;
-s | --skip-generate-symbols ) SKIP_GENERATE_SYMBOLS=1; shift ;;
-d | --skip-generate-drules ) SKIP_GENERATE_DRULES=1; shift ;;
-S | --skip-generate-strings ) SKIP_GENERATE_STRINGS=1; shift ;;
* ) break ;;
esac
done
@@ -116,8 +124,14 @@ fi
echo "Generating search categories / synonyms..."
./tools/unix/generate_categories.sh
echo "Generating Desktop UI strings..."
./tools/unix/generate_desktop_ui_strings.sh
if [ -z "$SKIP_GENERATE_STRINGS" ]; then
if Diff data/strings_hash iphone/Maps/LocalizedStrings/en.lproj/LocalizableTypes.strings || [ ! -z "$STRINGS_NOT_GENERATED" ]; then
echo "Generating Desktop UI strings..."
./tools/unix/generate_desktop_ui_strings.sh
fi
else
echo "Skipping generate Desktop UI strings..."
fi
if [ -z "$SKIP_GENERATE_SYMBOLS" ]; then
if Diff data/symbols_hash data/styles/*/*/symbols/* || [ ! -z "$SYMBOLS_NOT_GENERATED" ]; then

View File

@@ -207,13 +207,6 @@ node|z19-[man_made=water_well][drinking_water=not],
node|z19-[amenity=water_point][drinking_water=not],
{icon-image: drinking-water-no-m.svg;}
line|z18-[natural=tree_row],
{pattern-image: tree-m.svg;pattern-spacing: 60;}
line|z19[natural=tree_row],
{pattern-spacing: 70;}
line|z19[natural=tree_row],
{pattern-spacing: 80;}
node|z17-[natural=tree][name],
{icon-image: tree-special-m.svg;}
node|z18-[natural=tree][!name],
@@ -1300,7 +1293,7 @@ node|z17-[leisure=fitness_station]
node|z16-[leisure=sports_centre],
{icon-image: sports_centre-m.svg;icon-min-distance: 9;}
node|z17-[leisure=sports_hall]
{icon-image: pitch-m.svg;icon-min-distance: 10;}
{icon-image: sports_centre-m.svg;icon-min-distance: 10;}
node|z16-[leisure=dance]
{icon-image: dance-m.svg;icon-min-distance: 10;}
node|z16-[leisure=fitness_centre]

View File

@@ -479,6 +479,3 @@ piste:type-snow_park # area z14- (also has captio
man_made-bridge # area z14-
=== 10
natural-tree_row # line z18-
=== 5

View File

@@ -1401,9 +1401,6 @@ leisure-park-private # icon z14- (also has captio
leisure-swimming_pool-private # icon z17- (also has caption(optional) z17-, area z13-)
=== 100
natural-tree # icon z17- (also has caption(optional) z17-)
=== 6
#
# All automatic optional captions priorities are below 0.
# They follow the order of their correspoding icons.
@@ -2463,8 +2460,8 @@ emergency-life_ring # icon z19- (also has captio
power-substation # icon z17- (also has caption(optional) z18-, area z13-)
=== -9990
# natural-tree # caption(optional) z17- (also has icon z17-)
# === -9994
natural-tree # icon z17- (also has caption(optional) z17-)
=== -9991
# amenity-bench # caption(optional) z19- (also has icon z18-)
# amenity-bench-backless # caption(optional) z19- (also has icon z18-)
@@ -2502,6 +2499,7 @@ entrance-service # icon z19- (also has captio
# man_made-survey_point # caption(optional) z18- (also has icon z18-)
# man_made-telescope # caption(optional) z18- (also has icon z18-)
# man_made-telescope-optical # caption(optional) z17- (also has icon z17-)
# natural-tree # caption(optional) z17- (also has icon z17-)
# power-substation # caption(optional) z18- (also has icon z17-, area z13-)
# tourism-information # caption(optional) z16- (also has icon z16-)
# tourism-information-board # caption(optional) z16- (also has icon z16-)

View File

@@ -488,6 +488,3 @@ piste:type-snow_park # area z13- (also has captio
man_made-bridge # area z14-
=== 10
natural-tree_row # line z18-
=== 5

View File

@@ -1404,9 +1404,6 @@ leisure-park-private # icon z14- (also has captio
leisure-swimming_pool-private # icon z17- (also has caption(optional) z17-, area z13-)
=== 100
natural-tree # icon z16- (also has caption(optional) z16-)
=== 6
#
# All automatic optional captions priorities are below 0.
# They follow the order of their correspoding icons.
@@ -2469,8 +2466,8 @@ emergency-life_ring # icon z19- (also has captio
power-substation # icon z17- (also has caption(optional) z18-, area z13-)
=== -9990
# natural-tree # caption(optional) z16- (also has icon z16-)
# === -9994
natural-tree # icon z16- (also has caption(optional) z16-)
=== -9991
# amenity-bench # caption(optional) z19- (also has icon z18-)
# amenity-bench-backless # caption(optional) z19- (also has icon z18-)
@@ -2508,6 +2505,7 @@ entrance-service # icon z19- (also has captio
# man_made-survey_point # caption(optional) z15- (also has icon z14-)
# man_made-telescope # caption(optional) z18- (also has icon z18-)
# man_made-telescope-optical # caption(optional) z17- (also has icon z17-)
# natural-tree # caption(optional) z16- (also has icon z16-)
# power-substation # caption(optional) z18- (also has icon z17-, area z13-)
# tourism-information # caption(optional) z15- (also has icon z15-)
# tourism-information-board # caption(optional) z15- (also has icon z15-)

View File

@@ -1402,7 +1402,6 @@
"type.shop.watches" = "Watch Shop";
"type.shop.wholesale" = "Wholesale Shop";
"type.sport" = "Sport";
"type.sport.multi" = "Various Sports";
"type.sport.9pin" = "Bowling";
"type.sport.10pin" = "Bowling";
"type.sport.american_football" = "American Football";

View File

@@ -423,7 +423,6 @@ IsUnderBuildingChecker::IsUnderBuildingChecker()
{
Classificator const & c = classif();
m_types.push_back(c.GetTypeByPath({"natural", "tree"}));
m_types.push_back(c.GetTypeByPath({"natural", "tree_row"}));
}
IsIsolineChecker::IsIsolineChecker() : BaseChecker(1 /* level */)