File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
HMCL/src/main/java/org/jackhuang/hmcl/ui/main Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 4444import org .jackhuang .hmcl .util .javafx .SafeStringConverter ;
4545
4646import java .util .Arrays ;
47+ import java .util .List ;
4748import java .util .Locale ;
4849import java .util .Optional ;
4950
@@ -86,8 +87,11 @@ public PersonalizationPage() {
8687
8788 brightnessPane .setLeft (left );
8889
89- JFXComboBox <String > cboBrightness = new JFXComboBox <>(
90- FXCollections .observableArrayList ("auto" , "light" , "dark" ));
90+ JFXComboBox <String > cboBrightness = new JFXComboBox <>(FXCollections .observableArrayList (
91+ FXUtils .DARK_MODE != null
92+ ? List .of ("auto" , "light" , "dark" )
93+ : List .of ("light" , "dark" )
94+ ));
9195 cboBrightness .setConverter (FXUtils .stringConverter (name -> i18n ("settings.launcher.brightness." + name )));
9296 cboBrightness .valueProperty ().bindBidirectional (config ().themeBrightnessProperty ());
9397 brightnessPane .setRight (cboBrightness );
You can’t perform that action at this time.
0 commit comments