mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-29 10:31:40 +00:00
config: add adjust-icon-height option
Metric modifier for the `icon_height` metric.
This commit is contained in:
@@ -449,6 +449,7 @@ pub const DerivedConfig = struct {
|
||||
@"adjust-cursor-thickness": ?Metrics.Modifier,
|
||||
@"adjust-cursor-height": ?Metrics.Modifier,
|
||||
@"adjust-box-thickness": ?Metrics.Modifier,
|
||||
@"adjust-icon-height": ?Metrics.Modifier,
|
||||
@"freetype-load-flags": font.face.FreetypeLoadFlags,
|
||||
|
||||
/// Initialize a DerivedConfig. The config should be either a
|
||||
@@ -488,6 +489,7 @@ pub const DerivedConfig = struct {
|
||||
.@"adjust-cursor-thickness" = config.@"adjust-cursor-thickness",
|
||||
.@"adjust-cursor-height" = config.@"adjust-cursor-height",
|
||||
.@"adjust-box-thickness" = config.@"adjust-box-thickness",
|
||||
.@"adjust-icon-height" = config.@"adjust-icon-height",
|
||||
.@"freetype-load-flags" = if (font.face.FreetypeLoadFlags != void) config.@"freetype-load-flags" else {},
|
||||
|
||||
// This must be last so the arena contains all our allocations
|
||||
@@ -634,6 +636,7 @@ pub const Key = struct {
|
||||
if (config.@"adjust-cursor-thickness") |m| try set.put(alloc, .cursor_thickness, m);
|
||||
if (config.@"adjust-cursor-height") |m| try set.put(alloc, .cursor_height, m);
|
||||
if (config.@"adjust-box-thickness") |m| try set.put(alloc, .box_thickness, m);
|
||||
if (config.@"adjust-icon-height") |m| try set.put(alloc, .icon_height, m);
|
||||
break :set set;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user