Skip to content

Commit

Permalink
Removed detail fields from showcase overview box.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemmermann committed Aug 29, 2024
1 parent fa7e032 commit 207eb6d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .launchers/JFXCentral2MobileApp (develop).run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration default="false" name="JFXCentral2MobileApp (develop)" type="Application" factoryName="Application">
<option name="MAIN_CLASS_NAME" value="com.dlsc.jfxcentral2.app.JFXCentral2MobileApp" />
<module name="app" />
<option name="VM_PARAMETERS" value="-Ddevelop=true -Dsocial=false" />
<option name="VM_PARAMETERS" value="-Ddevelop=true -Dsocial=false -Dnative=true" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="com.dlsc.jfxcentral2.app.*" />
Expand Down
1 change: 1 addition & 0 deletions .launchers/JFXCentral2MobileApp.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<configuration default="false" name="JFXCentral2MobileApp" type="Application" factoryName="Application">
<option name="MAIN_CLASS_NAME" value="com.dlsc.jfxcentral2.app.JFXCentral2MobileApp" />
<module name="app" />
<option name="VM_PARAMETERS" value=" -Dnative=true" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="com.dlsc.jfxcentral2.app.*" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.dlsc.jfxcentral2.components.CustomMarkdownView;
import com.dlsc.jfxcentral2.components.PaneBase;
import com.dlsc.jfxcentral2.model.NameProvider;
import com.dlsc.jfxcentral2.utils.OSUtil;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.property.SimpleStringProperty;
Expand Down Expand Up @@ -50,6 +51,9 @@ public OverviewBox(T model) {

VBox bodyBox = new VBox(topWrapper, markdownView, bottomWrapper);
bodyBox.getStyleClass().add("body-box");
if (OSUtil.isAndroidOrIOS()) {
bodyBox.getStyleClass().add("no-top-padding");
}

VBox contentBox = new VBox();
contentBox.getStyleClass().add("content-box");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.dlsc.jfxcentral.data.DataRepository2;
import com.dlsc.jfxcentral.data.model.RealWorldApp;
import com.dlsc.jfxcentral2.utils.OSUtil;
import javafx.geometry.HPos;
import javafx.geometry.VPos;
import javafx.scene.Node;
Expand Down Expand Up @@ -49,6 +50,7 @@ protected Node createTopNode() {

if (!isSmall()) {
GridPane gridPane = new GridPane();
gridPane.setVisible(!OSUtil.isAndroidOrIOS());
gridPane.getStyleClass().add("top-grid");
for (int i = 0; i < 4; i++) {
ColumnConstraints columnConstraints = new ColumnConstraints();
Expand Down Expand Up @@ -89,6 +91,7 @@ protected Node createTopNode() {
createdOnGroup.getHeader(),
createdOnLabel
);
topBox.setVisible(!OSUtil.isAndroidOrIOS());
createdOnLabel.getStyleClass().add("last");
topBox.getStyleClass().add("top-box");
return topBox;
Expand Down
8 changes: 8 additions & 0 deletions components/src/main/resources/com/dlsc/jfxcentral2/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -6851,10 +6851,18 @@
-fx-padding: 20px 30px;
}

.overview-box:md-lg .body-box.no-top-padding {
-fx-padding: 0px 30px 20px 30px;
}

.overview-box:sm .body-box {
-fx-padding: 20px;
}

.overview-box:sm .body-box.no-top-padding {
-fx-padding: 0px 20px 20px 20px;
}

.overview-box > .content-box > .body-box {
-fx-spacing: 15px;
}
Expand Down

0 comments on commit 207eb6d

Please sign in to comment.