diff --git a/README.md b/README.md
index 902f84f..e36dbf2 100644
--- a/README.md
+++ b/README.md
@@ -1,13 +1,15 @@
# AiR
-### AI with Rust.
+
+
+ AI with Rust |
+
[![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)
@@ -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>` in order to sync the state between service and UI.
+- **Synchronization**: Mutable version of the components. Usually, they are `Arc>` 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.
diff --git a/asset/icon.png b/asset/icon.png
old mode 100755
new mode 100644
index 2158572..aaa113d
Binary files a/asset/icon.png and b/asset/icon.png differ
diff --git a/src/component/setting.rs b/src/component/setting.rs
index a43cfd4..2fd58e8 100644
--- a/src/component/setting.rs
+++ b/src/component/setting.rs
@@ -38,7 +38,7 @@ impl Setting {
},
};
- // TODO: validate the setting.
+ // TODO: https://github.com/hack-ink/AiR/issues/62.
Ok(toml::from_str(&s)?)
}
@@ -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 {
let default = format!(
"As a professional translator and language master, assist me in translating text! \
@@ -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(),
}
}
}