ThemeSpacing Class#
Defines the spacing and dimension constants for a Verso notebook theme. All values are in device-independent pixels.
public sealed record ThemeSpacing : System.IEquatable<Verso.Abstractions.ThemeSpacing>
Inheritance System.Object → ThemeSpacing
Implements System.IEquatable<ThemeSpacing>
Properties#
ButtonBorderRadius Property#
Corner border radius for buttons, in pixels.
public double ButtonBorderRadius { get; init; }
Property Value#
CellBorderRadius Property#
Corner border radius for notebook cells, in pixels.
public double CellBorderRadius { get; init; }
Property Value#
CellGap Property#
Vertical gap between consecutive cells, in pixels.
public double CellGap { get; init; }
Property Value#
CellPadding Property#
Inner padding within each notebook cell, in pixels.
public double CellPadding { get; init; }
Property Value#
ContentMarginHorizontal Property#
Horizontal margin around the main content area, in pixels.
public double ContentMarginHorizontal { get; init; }
Property Value#
ContentMarginVertical Property#
Vertical margin around the main content area, in pixels.
public double ContentMarginVertical { get; init; }
Property Value#
OutputPadding Property#
Inner padding within cell output regions, in pixels.
public double OutputPadding { get; init; }
Property Value#
ScrollbarWidth Property#
Width of scrollbar tracks, in pixels.
public double ScrollbarWidth { get; init; }
Property Value#
ShapeFull Property#
Corner radius that fully rounds an element into a pill, in pixels.
public double ShapeFull { get; init; }
Property Value#
ShapeLarge Property#
Corner radius for cards, panels, and dialogs, in pixels.
public double ShapeLarge { get; init; }
Property Value#
ShapeMedium Property#
Corner radius for grouped controls, menus, and popovers, in pixels.
public double ShapeMedium { get; init; }
Property Value#
ShapeSmall Property#
Corner radius for small elements: badges, chips, inline code, and the editor surface inside a cell. In pixels.
public double ShapeSmall { get; init; }
Property Value#
Remarks#
ShapeSmall through ShapeFull are a scale, not four independent values. Pick by the size of the thing being rounded rather than by what it is: small for anything roughly one line tall, medium for grouped controls and menus, large for cards and panels, full for pills. A theme that wants square corners sets all four to zero.
SidebarWidth Property#
Width of the sidebar panel, in pixels.
public double SidebarWidth { get; init; }
Property Value#
ToolbarHeight Property#
Height of the main toolbar, in pixels.
public double ToolbarHeight { get; init; }