Commit graph

1 commit

Author SHA1 Message Date
Fruitsalad
6ddb80d494
Add SegmentedBarChart, remove SplitBar and BeakerBarChart (#42908)
* Add SegmentedBarChart

* CryoPodWindow: Integrate SegmentedBarChart

* Remove BeakerBarChart

* SegmentedBarChart: Fix first frame jank

To update the entries' widths, it needed Control.Width, but that wouldn't be available until later. I moved things around so that it gets updated in ArrangeOverride the first time.

* GasAnalyzerWindow: Integrate SegmentedBarChart

* AbsorbentItemStatus: Integrate SegmentedBarChart

* Remove SplitBar

* SegmentedBarChart: Fix UI scale bug

With 200% UI scale the gaps would be half the intended size.

* SegmentedBarChart: Explicit deltaSeconds

* AbsorbentItemStatus: Use bar chart's background color

* SegmentedBarChart: Edit comments

* SegmentedBarChart: Edit calculation explanation

* SegmentedBarChart: Fix a subtle UI scale bug

MinSmallNotchScreenDistance was promised to be in UI units in the comment, but it was actually in pixels.

* SegmentedBarChart: Add sheetlet and doc comments

* SegmentedBarChart: Use StylePropertyDefault instead of TryGetStyleProperty

* SegmentedBarChart: Remove unnecessary helper

* SegmentedBarChart: Small redundancy removal

* AbsorbentItemStatus: Small adjustments based on feedback

* SegmentedBarChart: Use named colors

* AbsorbentItemStatus: Draw a medium notch every six notches instead of five

 This is because the capacity of mops was changed to 12. It looks a little better this way.

* SegmentedBarChart: Reorder functions, add doc comment
2026-07-28 18:39:20 +00:00