Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Jan 20, 2024
2 parents b7389c2 + c089834 commit b78aa8e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
9 changes: 9 additions & 0 deletions haxe/ui/_module/styles/default/pickers.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@
border: 1px solid $accent-color;
}

.month-picker-panel {
background-color: $default-background-color;
}

.month-deinc {
resource: $arrow-left;
}
Expand All @@ -157,6 +161,11 @@
background-color: $default-background-color;
}

.month-picker-panel #yearLabel {
background-color: $normal-background-color-start;
border-top: 1px solid $normal-border-color;
}

/************************************************************************
** MENU ITEM PICKER
*************************************************************************/
Expand Down
4 changes: 2 additions & 2 deletions haxe/ui/components/pickers/MonthPicker.hx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private class Handler extends ItemPickerHandler {
}

@:xml('
<vbox style="padding: 0px;spacing:0;background-color: $default-background-color">
<vbox style="padding: 0px;spacing:0;">
<hbox width="100%" style="padding:10px;padding-top: 15px;padding-bottom:15px;spacing:10px;">
<image verticalAlign="center" styleName="month-deinc" />
<grid id="monthButtons" columns="4" width="100%">
Expand All @@ -116,7 +116,7 @@ private class Handler extends ItemPickerHandler {
</grid>
<image verticalAlign="center" styleName="month-inc" />
</hbox>
<label id="yearLabel" width="100%" horizontalAlign="center" style="background-color: $normal-background-color-start;text-align:center;padding: 5px;border-top:1px solid $normal-border-color;" />
<label id="yearLabel" width="100%" horizontalAlign="center" style="text-align:center;padding: 5px;" />
</vbox>
')
class MonthPickerPanel extends VBox {
Expand Down
4 changes: 3 additions & 1 deletion haxe/ui/containers/Frame.hx
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,11 @@ private class Builder extends CompositeBuilder {

public function addCollapsibleHeader() {
_component.addClass("collapsible-frame");
var header = _component.findComponent("frame-header", Header);
var header = _component.findComponent("frame-header", Header, false);
if (header == null) {
header = new Header();
header.id = "frame-header";
header.addClass("frame-header");
header.includeInLayout = false;
_component.addComponent(header);
}
Expand Down

0 comments on commit b78aa8e

Please sign in to comment.