From 9bfafde12348623e2a5d1513ba0928e15d441efd Mon Sep 17 00:00:00 2001 From: Brooks Rady Date: Tue, 22 Mar 2022 14:58:16 +0000 Subject: feat(ui): round frame corners (#1227) * feat(ui): round frame corners * Allow rounded_corners to be set without a palette * Revert "Allow rounded_corners to be set without a palette" This reverts commit 9271a4b5452f2e59e0ebd55136343f0fbfabaa13. * fix(style): remove redundant code * fix(style): clippy lints that somehow got missed * feat(config): add ui config section --- zellij-client/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'zellij-client/src') diff --git a/zellij-client/src/lib.rs b/zellij-client/src/lib.rs index bd5db5cd1..207216638 100644 --- a/zellij-client/src/lib.rs +++ b/zellij-client/src/lib.rs @@ -10,6 +10,7 @@ use std::io::{self, Write}; use std::path::Path; use std::process::Command; use std::thread; +use zellij_tile::prelude::Style; use crate::{ command_is_executing::CommandIsExecuting, input_handler::input_loop, @@ -146,7 +147,10 @@ pub fn start_client( let full_screen_ws = os_input.get_terminal_size_using_fd(0); let client_attributes = ClientAttributes { size: full_screen_ws, - palette, + style: Style { + colors: palette, + rounded_corners: config.ui.unwrap_or_default().pane_frames.rounded_corners, + }, }; let first_msg = match info { -- cgit v1.2.3