Phase 6: VBDOS-Theme umsetzen und Change 05a archivieren

This commit is contained in:
2026-09-07 20:25:55 +02:00
parent 69f2002481
commit 5aa920b768
22 changed files with 686 additions and 79 deletions

View File

@@ -8,7 +8,7 @@ use crossterm::event::{KeyCode as K, KeyEvent, KeyModifiers as M};
use pulldown_cmark::{Event, Options, Parser, Tag, TagEnd};
use ratatui::{
layout::Rect,
style::{Color, Modifier, Style},
style::{Modifier, Style},
text::{Line, Span},
widgets::Paragraph,
Frame,
@@ -165,7 +165,7 @@ impl Page {
style = style.add_modifier(Modifier::ITALIC);
}
if heading.is_some() {
style = style.fg(Color::Yellow);
style = style.fg(crate::render::dos(1));
}
match event {
Event::Start(Tag::Heading { level, .. }) => {
@@ -864,7 +864,7 @@ impl App {
let start = self.help.row(&rows);
f.render_widget(
Paragraph::new(format!("{} · Suche: {}", page.title, self.help.input))
.style(Style::default().fg(Color::Yellow)),
.style(Style::default().fg(crate::render::dos(1))),
Rect::new(area.x, area.y, area.width, 1),
);
for (y, row) in rows
@@ -887,9 +887,11 @@ impl App {
if x >= shift && end <= shift + area.width as usize {
let mut style = g.style;
if let Some(link) = g.link {
style = style.fg(Color::Cyan).add_modifier(Modifier::UNDERLINED);
style = style
.fg(crate::render::dos(1))
.add_modifier(Modifier::UNDERLINED);
if self.help.position.link == Some(link) {
style = style.bg(Color::Blue).fg(Color::White);
style = style.bg(crate::render::dos(1)).fg(crate::render::dos(15));
}
}
if let Some(last) = spans.last_mut().filter(|s| s.style == style) {