Commit graph

10 commits

Author SHA1 Message Date
aquiles
4bf88ae6ad Refactor: Extract monospace_attrs() helper to eliminate code duplication
- Add monospace_attrs() function in main.rs to centralize monospace font attributes creation
- Replace duplicated Attrs::new().family(Family::Monospace) calls in:
  * line_number.rs: LineNumberCache::get() method
  * main.rs: App::init() font enumeration
  * tab.rs: EditorTab::new() constructor
- Remove unused imports (Attrs, Family) from line_number.rs
- Resolves TODO comments about code repetition across modules

This change improves maintainability by having a single source of truth
for monospace font configuration.
2025-10-05 06:22:37 +00:00
Jeremy Soller
2fc1abe0b8
Update dependencies 2025-03-31 09:16:20 -06:00
Jeremy Soller
5b0d05d2cb
Update libcosmic/iced 2024-10-22 11:55:58 -06:00
Jeremy Soller
6bc62fa8ba
Update dependencies 2024-09-06 07:29:28 -06:00
Jeremy Soller
3f2af19d9e
Update dependencies 2024-06-12 08:18:22 -06:00
Jeremy Soller
0693acfdd4
Update dependencies 2024-06-10 08:35:49 -06:00
Jeremy Soller
0fa09ab57b
Update cosmic-text, fixing CRLF handling (#64) 2024-04-30 12:22:39 -06:00
Jeremy Soller
44b1533dc0
Update cosmic-text 2024-01-17 13:40:11 -07:00
Jeremy Soller
93449fdff0
Update to refactor branch of cosmic-text 2023-12-15 15:08:39 -07:00
Jeremy Soller
2494a7330c
Implement line numbers 2023-11-30 14:24:58 -07:00