config: allow disabling window titles
This commit is contained in:
parent
796269d31e
commit
daafb98336
19 changed files with 222 additions and 74 deletions
|
|
@ -21,14 +21,14 @@ async fn test(run: Rc<TestRun>) -> Result<(), TestError> {
|
|||
tassert_eq!(window.tl.core.width.get(), 800);
|
||||
tassert_eq!(
|
||||
window.tl.core.height.get(),
|
||||
600 - 2 * (run.state.theme.sizes.title_height.get() + 1)
|
||||
600 - 2 * run.state.theme.title_plus_underline_height()
|
||||
);
|
||||
|
||||
tassert_eq!(
|
||||
window.tl.server.node_absolute_position(),
|
||||
Rect::new_sized(
|
||||
0,
|
||||
2 * (run.state.theme.sizes.title_height.get() + 1),
|
||||
2 * run.state.theme.title_plus_underline_height(),
|
||||
window.tl.core.width.get(),
|
||||
window.tl.core.height.get(),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ async fn test(run: Rc<TestRun>) -> Result<(), TestError> {
|
|||
let window2 = client.create_window().await?;
|
||||
window2.map().await?;
|
||||
|
||||
let otop = 2 * (run.state.theme.sizes.title_height.get() + 1);
|
||||
let otop = 2 * run.state.theme.title_plus_underline_height();
|
||||
let bw = run.state.theme.sizes.border_width.get();
|
||||
|
||||
tassert_eq!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue