Skip to content

Commit

Permalink
New icon
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier committed Jul 11, 2024
1 parent 1d61b9e commit 21db06c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<div align="center">

# AiR
### AI with Rust.

<h3 style="display: flex; align-items: center; justify-content: center;">
AI with Rust | <img src="asset/icon.png" alt="App Icon" style="width: 105; height: 105; margin-left: 10px;">
</h3>

[![License](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![Checks](https://github.com/hack-ink/air/actions/workflows/checks.yml/badge.svg?branch=main)](https://github.com/hack-ink/air/actions/workflows/checks.yml)
[![Release](https://github.com/hack-ink/air/actions/workflows/release.yml/badge.svg)](https://github.com/hack-ink/air/actions/workflows/release.yml)
[![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/hack-ink/air)](https://github.com/hack-ink/air/tags)
[![GitHub code lines](https://tokei.rs/b1/github/hack-ink/air)](https://github.com/hack-ink/air)
[![GitHub last commit](https://img.shields.io/github/last-commit/hack-ink/air?color=red&style=plastic)](https://github.com/hack-ink/air)

</div>
Expand All @@ -16,17 +18,20 @@
Built upon [egui](https://github.com/emilk/egui), a fast and cross-platform GUI toolkit written in pure Rust.

### Components
These items are static and they used to be called by other stuffs.
- **Static**: These items are static and are used by other parts of the application.

### OS
Provides wrapped APIs to interact with the operating system.
- **Interaction**: Provides wrapped APIs to interact with the operating system.

### Services
These items are time-sensitive and require frequent checking or updating.
They will be spawned as separate threads and run in the background.
- **Background Processes**: These items are time-sensitive and require frequent checking or updating. They will be spawned as separate threads and run in the background.

### State
Mutable version of the components. Usually, they are `Arc<Mutex<Components>>` in order to sync the state between service and UI.
- **Synchronization**: Mutable version of the components. Usually, they are `Arc<Mutex<Components>>` in order to sync the state between service and UI.

### UI
The user interface components.
- **User Interface**: The user interface components.


## License
AiR is licensed under the [GPLv3](https://www.gnu.org/licenses/gpl-3.0) license.
Binary file modified asset/icon.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions src/component/setting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl Setting {
},
};

// TODO: validate the setting.
// TODO: https://github.com/hack-ink/AiR/issues/62.
Ok(toml::from_str(&s)?)
}

Expand Down Expand Up @@ -120,6 +120,7 @@ pub struct Translation {
pub b: Language,
}
impl Translation {
// TODO: https://github.com/hack-ink/AiR/issues/41.
pub fn prompt(&self) -> Cow<str> {
let default = format!(
"As a professional translator and language master, assist me in translating text! \
Expand Down Expand Up @@ -183,10 +184,10 @@ pub struct Hotkeys {
impl Default for Hotkeys {
fn default() -> Self {
Self {
rewrite: "ctrl+t".into(),
rewrite_directly: "ctrl+y".into(),
translate: "ctrl+u".into(),
translate_directly: "ctrl+i".into(),
rewrite: "CTRL+T".into(),
rewrite_directly: "CTRL+Y".into(),
translate: "CTRL+U".into(),
translate_directly: "CTRL+I".into(),
}
}
}
Expand Down

0 comments on commit 21db06c

Please sign in to comment.