修改一些小细节

main
lensfrex 3 years ago
parent 5df2f9c7f6
commit ab423e29b6
Signed by: lensfrex
GPG Key ID: 947ADABD8533C476
  1. 4
      Dogename/src/main/java/me/lensferno/dogename/controllers/MainInterfaceController.java
  2. 2
      Dogename/src/main/java/me/lensferno/dogename/select/core/Worker.java
  3. 13
      Dogename/src/main/resources/me/lensferno/dogename/FXMLs/ProgramInfoPane.fxml

@ -199,8 +199,12 @@ public final class MainInterfaceController {
selector.addStoppedEventListener((observableValue, oldValue, stop)->{ selector.addStoppedEventListener((observableValue, oldValue, stop)->{
if (stop) { if (stop) {
anPaiBtn.setText("安排一下"); anPaiBtn.setText("安排一下");
nameChoose.setDisable(false);
numbChoose.setDisable(false);
} else { } else {
anPaiBtn.setText("不玩了!"); anPaiBtn.setText("不玩了!");
nameChoose.setDisable(true);
numbChoose.setDisable(true);
} }
}); });
} }

@ -13,7 +13,7 @@ public final class Worker {
private final Random randomNumber = new Random(); private final Random randomNumber = new Random();
private final StringProperty[] labelTexts; private StringProperty[] labelTexts;
private final SimpleBooleanProperty stoppedIndicator = new SimpleBooleanProperty(true); private final SimpleBooleanProperty stoppedIndicator = new SimpleBooleanProperty(true);
private final MainConfig config; private final MainConfig config;

@ -1,12 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<?import com.jfoenix.controls.*?>
<?import java.lang.*?>
<?import javafx.geometry.*?>
<?import javafx.scene.*?>
<?import javafx.scene.image.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?>
<?import com.jfoenix.controls.JFXButton?> <?import com.jfoenix.controls.JFXButton?>
<?import com.jfoenix.controls.JFXTextArea?> <?import com.jfoenix.controls.JFXTextArea?>
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
@ -16,13 +9,13 @@
<?import javafx.scene.layout.VBox?> <?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?> <?import javafx.scene.text.Font?>
<fx:root maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="459.0" prefWidth="692.0" spacing="10.0" type="VBox" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"> <fx:root maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="459.0" prefWidth="692.0" spacing="10.0" type="VBox" xmlns="http://javafx.com/javafx/8.0.301" xmlns:fx="http://javafx.com/fxml/1">
<children> <children>
<ImageView fx:id="dogeView" fitHeight="150.0" fitWidth="664.0" pickOnBounds="true" preserveRatio="true"> <ImageView fx:id="dogeView" fitHeight="150.0" fitWidth="664.0" pickOnBounds="true" preserveRatio="true">
<cursor> <cursor>
<Cursor fx:constant="NONE" /> <Cursor fx:constant="NONE" />
</cursor></ImageView> </cursor></ImageView>
<JFXTextArea editable="false" focusColor="#0072ffbf" labelFloat="true" prefHeight="227.0" prefWidth="678.0" text="该程序以Google Material Design为界面风格,使用Java语言编写,是一个用来点名的家伙。&#10;这是一个开源软件,源代码可在https://github.com/lensferno/dogename查看和获取。&#10;(大更新基本上是不会有的了ヾ§  ̄▽)ゞ,等什么时候有空了再考虑吧(=´∇`=))&#10;---------------------------------------------------------------------------------------&#10;About me:&#10; Github主页:https://github.com/lensferno&#10; 联系:lensferno@outlook.com  ulcch@foxmail.com  2318724550&#10;---------------------------------------------------------------------------------------&#10;使用到的第三方库:&#10;JFoenix(8.0.4),UI界面库。&#10;Apache Commons Codec(1.11),用于Base64解码。&#10;Apache Commons IO(2.6),用于对文件进行部分操作&#10;Gson(2.8.5),用于Json数据的解析与生成。&#10;OkHttp3(4.2.2),用于语音部分的数据请求。&#10;gushici项目提供的古诗词接口和数据。&#10;“每日一句话”的数据来自一言&#10;本项目还使用了 百度AI SDK 来实现OCR功能。&#10;"> <JFXTextArea editable="false" focusColor="#0072ffbf" labelFloat="true" prefHeight="227.0" prefWidth="678.0" text="该程序以Google Material Design为界面风格,使用Java语言编写,是一个用来点名的家伙。&#10;这是一个开源软件,源代码可在https://github.com/lensferno/dogename查看和获取。&#10;(大更新基本上是不会有的了ヾ§  ̄▽)ゞ,等什么时候有空了再考虑吧(=´∇`=))&#10;---------------------------------------------------------------------------------------&#10;About me:&#10; Github主页:https://github.com/lensferno&#10; 联系:lensferno@outlook.com  ulcch@foxmail.com  2318724550&#10;---------------------------------------------------------------------------------------&#10;使用到的第三方库:&#10;JFoenix(8.0.4),UI界面库。&#10;Apache Commons Codec(1.11),用于Base64和MD5的编解码。&#10;Apache Commons IO(2.6),用于对文件进行部分操作&#10;Gson(2.8.5),用于Json数据的解析与生成。&#10;Java Stream Player(9.0.4),用于语音中声音的播放。&#10;OkHttp3(4.2.2),用于语音部分的数据请求。&#10;gushici项目提供的古诗词接口和数据。&#10;“每日一句话”的数据来自一言&#10;本项目还使用了 百度AI SDK 来实现OCR功能。&#10;">
<font> <font>
<Font name="Microsoft YaHei" size="13.0" /> <Font name="Microsoft YaHei" size="13.0" />
</font> </font>
@ -39,7 +32,7 @@
<Font name="Microsoft YaHei" size="13.0" /> <Font name="Microsoft YaHei" size="13.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton buttonType="RAISED" onAction="#showLicense" prefHeight="30.0" prefWidth="150.0" ripplerFill="#006063" style="-fx-background-color: #B2EBF2;" text="开源协议(LGPL v3)"> <JFXButton buttonType="RAISED" onAction="#showLicense" prefHeight="30.0" prefWidth="150.0" ripplerFill="#006063" style="-fx-background-color: #B2EBF2;" text="开源协议(GPL v3)">
<font> <font>
<Font name="Microsoft YaHei" size="13.0" /> <Font name="Microsoft YaHei" size="13.0" />
</font> </font>

Loading…
Cancel
Save