ClientSettings replaces ConfigEditor: a section list on the left (General, UI Style, Animations) and the chosen section's settings on the right, each with a Reset for that section. UI Style shows four theme presets, the theme colors as a two-column grid, then the radii and font. New pieces: SectionNav, ThemePresetCard, ColorGrid and Theme.PRESETS. Theme keeps its config like AnimationConfig does, Divider can be vertical, and PropertyList's section titles are public. Co-Authored-By: Claude Opus 5.5 <[email protected]>
24 lines
617 B
Java
24 lines
617 B
Java
package org.saturnclient.ui.elements;
|
|
|
|
import org.saturnclient.config.Theme;
|
|
import org.saturnclient.ui.Element;
|
|
import org.saturnclient.ui.ElementContext;
|
|
import org.saturnclient.ui.RenderScope;
|
|
|
|
/**
|
|
* A faint line filling the element: horizontal by default, or vertical when
|
|
* given a width of 1 and a height.
|
|
*/
|
|
public class Divider extends Element {
|
|
|
|
public Divider(int width) {
|
|
this.width = width;
|
|
this.height = 1;
|
|
}
|
|
|
|
@Override
|
|
public void render(RenderScope renderScope, ElementContext ctx) {
|
|
renderScope.drawRectangle(0, 0, width, height, Theme.getBorder());
|
|
}
|
|
}
|