Skip to content

Commit 9ec6fad

Browse files
committed
Upgrade styles
1 parent 15ba872 commit 9ec6fad

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/bridgex/src/app.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub fn app() -> impl IntoElement {
3232
open_file_state.clone(),
3333
show_about.clone(),
3434
show_licenses.clone(),
35-
Some("#161b22".to_string())
35+
Some("#00000000".to_string())
3636
);
3737
let menu = menu_ctn.menu_bar();
3838

@@ -82,7 +82,7 @@ fn build_editor(
8282

8383
fn build_preview(markdown: String, theme_colors: ColorsSheet) -> impl IntoElement {
8484
rect()
85-
.background(theme_colors.surface_primary)
85+
.background(Color::from_rgb(151, 166, 197))
8686
.border(Border::new().width(1.0).fill(theme_colors.border))
8787
.corner_radius(12.0)
8888
.padding(Gaps::new_all(14.0))
@@ -92,6 +92,11 @@ fn build_preview(markdown: String, theme_colors: ColorsSheet) -> impl IntoElemen
9292
MarkdownViewer::new(markdown)
9393
.padding(Gaps::new_all(8.0))
9494
.color(theme_colors.text_primary)
95+
.background_code(Color::from_rgb(30, 34, 45))
96+
.color_code(Color::from_rgb(225, 230, 240))
97+
.background_blockquote(Color::from_rgb(36, 42, 55))
98+
.border_blockquote(Color::from_rgb(72, 83, 101))
99+
.background_divider(Color::from_rgb(85, 95, 112))
95100
)
96101
)
97102
}

0 commit comments

Comments
 (0)