No description
Find a file
Mohammad AlSaleh b4954196ed Only update default colors when needed, and update() when it's done
With commit 7c5d5440e5, it became
 possible that `update_colors()` may run without being immediately
 followed by an `update()`. But `update_colors()` creates a new
 `metadata_set`, which means `attr_list` may now contain out-of-date
 metadata indices to the old cleared `metadata_set`.

 With this commit:
 * A `metadata_set` is only cleared and recreated in `update_colors()`
   if default colors have actually changed.
 * A `bool` is returned and set it to `true` from `update_colors()` if
   a color update happened.
 * An `update()` is run if we get a `true` from `update_colors()`.
 * And finally, `update_colors()` is renamed to
   `update_default_colors()`.

 Fixes #291.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2024-08-16 19:17:31 -06:00
.github/workflows Add FlakeHub GitHub Action 2024-04-01 14:35:19 -06:00
color-schemes Rename gruvbox color scheme to match all the others 2024-04-25 19:58:50 -06:00
debian fix: add dep to debian control 2024-05-18 01:34:56 +02:00
i18n Updated french translations for Cosmic Term 2024-08-15 08:37:59 -06:00
res fix: center go-up and go-down icons 2024-07-17 10:29:19 -06:00
src Only update default colors when needed, and update() when it's done 2024-08-16 19:17:31 -06:00
.envrc Nix flake for developing in NixOS 2024-05-14 10:57:15 -06:00
.gitignore allow to build on pop_os with nix flake 2024-05-29 20:36:15 -06:00
ansi-colors.sh ansi-colors.sh: Add underlines 2024-01-16 11:36:05 -07:00
build.rs Shorten hash in UI 2024-02-28 13:38:26 -07:00
Cargo.lock fix(libcosmic): double-click to maximize 2024-08-01 21:19:46 +02:00
Cargo.toml Update cosmic-text 2024-07-31 10:13:01 -06:00
flake.lock Nix flake for developing in NixOS 2024-05-14 10:57:15 -06:00
flake.nix allow to build on pop_os with nix flake 2024-05-29 20:36:15 -06:00
i18n.toml Add config, translations, settings UI 2023-12-22 14:31:01 -07:00
justfile support CARGO_TARGET_DIR 2024-07-15 07:59:42 -06:00
LICENSE Initial commit 2023-12-17 10:24:31 -07:00
README.md Format color schemes callout in readme 2024-02-22 10:01:17 -07:00

cosmic-term

WIP COSMIC terminal emulator, built using alacritty_terminal that is provided by the alacritty project. cosmic-term provides bidirectional rendering and ligatures with a custom renderer based on cosmic-text.

The wgpu feature, enabled by default, supports GPU rendering using glyphon and wgpu. If wgpu is not enabled or fails to initialize, then rendering falls back to using softbuffer and tiny-skia.

Color Schemes

Custom color schemes can be imported from the View -> Color schemes... menu item. You can find templates for color schemes in the color-schemes folder.