feat: add new color variable for red and update SQL query in history management to include additional fields

This commit is contained in:
pandadev 2025-03-16 21:33:00 +01:00
parent ddd92a70e2
commit be1718d9a5
No known key found for this signature in database
GPG key ID: C39629DACB8E762F
3 changed files with 8 additions and 2 deletions

View file

@ -64,6 +64,8 @@ onMounted(async () => {
--accent: #feb453; --accent: #feb453;
--border: #ffffff0d; --border: #ffffff0d;
--red: #F84E4E;
--text: #e5dfd5; --text: #e5dfd5;
--text-secondary: #ada9a1; --text-secondary: #ada9a1;
--text-muted: #78756f; --text-muted: #78756f;

View file

@ -81,7 +81,7 @@ import { KeyValues, KeyLabels } from "../types/keys";
import { disable, enable } from "@tauri-apps/plugin-autostart"; import { disable, enable } from "@tauri-apps/plugin-autostart";
import { useNuxtApp } from "#app"; import { useNuxtApp } from "#app";
import BottomBar from "../components/BottomBar.vue"; import BottomBar from "../components/BottomBar.vue";
import IconsEnter from "~/components/Icons/Enter.vue"; import IconsEnter from "~/components/Keys/Enter.vue";
const activeModifiers = reactive<Set<KeyValues>>(new Set()); const activeModifiers = reactive<Set<KeyValues>>(new Set());
const isKeybindInputFocused = ref(false); const isKeybindInputFocused = ref(false);

View file

@ -71,8 +71,12 @@ pub async fn add_history_item(
Some(_) => { Some(_) => {
sqlx sqlx
::query( ::query(
"UPDATE history SET timestamp = strftime('%Y-%m-%dT%H:%M:%f+00:00', 'now') WHERE content = ? AND content_type = ?" "UPDATE history SET source = ?, source_icon = ?, timestamp = strftime('%Y-%m-%dT%H:%M:%f+00:00', 'now'), favicon = ?, language = ? WHERE content = ? AND content_type = ?"
) )
.bind(&source)
.bind(&source_icon)
.bind(&favicon)
.bind(&language)
.bind(&content) .bind(&content)
.bind(&content_type) .bind(&content_type)
.execute(&*pool).await .execute(&*pool).await