Merge in DESIGN/design from ~HADES/design:release/11.0 to release/11.0 * commit '0c72993994e073b3be8da594c72274822cb0bc69': REPORT-58629 移动下类的位置 REPORT-58629 删掉10.0的2倍图 REPORT-58629 换一下fr11设计器启动图persist/11.0
@ -0,0 +1,33 @@ |
|||||||
|
package com.fr.design.locale.impl; |
||||||
|
|
||||||
|
import com.fr.design.DesignerEnvManager; |
||||||
|
import com.fr.general.locale.LocaleMark; |
||||||
|
import java.util.HashMap; |
||||||
|
import java.util.Locale; |
||||||
|
import java.util.Map; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author hades |
||||||
|
* @version 10.0 |
||||||
|
* Created by hades on 2021/9/2 |
||||||
|
*/ |
||||||
|
public class DoubleSplashMark implements LocaleMark<String> { |
||||||
|
|
||||||
|
private final Map<Locale, String> map = new HashMap<Locale, String>(); |
||||||
|
private static final String SPLASH_PATH_X2 = "/com/fr/design/images/splash@2x.png"; |
||||||
|
private static final String SPLASH_PATH_EN_X2 = "/com/fr/design/images/splash_en@2x.png"; |
||||||
|
|
||||||
|
public DoubleSplashMark() { |
||||||
|
map.put(Locale.CHINA, SPLASH_PATH_X2); |
||||||
|
map.put(Locale.KOREA, SPLASH_PATH_EN_X2); |
||||||
|
map.put(Locale.JAPAN, SPLASH_PATH_EN_X2); |
||||||
|
map.put(Locale.US, SPLASH_PATH_EN_X2); |
||||||
|
map.put(Locale.TAIWAN, SPLASH_PATH_EN_X2); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public String getValue() { |
||||||
|
String result = map.get(DesignerEnvManager.getEnvManager().getLanguage()); |
||||||
|
return result == null ? SPLASH_PATH_EN_X2 : result; |
||||||
|
} |
||||||
|
} |
After Width: | Height: | Size: 286 KiB |
After Width: | Height: | Size: 914 KiB |
Before Width: | Height: | Size: 264 KiB |
Before Width: | Height: | Size: 814 KiB |
Before Width: | Height: | Size: 257 KiB |
After Width: | Height: | Size: 285 KiB |
After Width: | Height: | Size: 911 KiB |