mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-11-22 03:19:53 -08:00
small fixes and update to nord theme
This commit is contained in:
parent
0e1130f7c0
commit
54cad7d62b
2
ani-cli
2
ani-cli
@ -246,6 +246,7 @@ insert_history() {
|
||||
res="$?"
|
||||
if [[ $res -gt 0 ]]; then
|
||||
logger "Match found... Updating row in history db..."
|
||||
wait # in case there's another insert/update still running in background
|
||||
update_date "$@"
|
||||
res=$?
|
||||
else
|
||||
@ -265,6 +266,7 @@ insert_history() {
|
||||
VALUES('$1', '$2', '$datetime');"
|
||||
fi
|
||||
logger "INSERT STATEMENT -> $stmt"
|
||||
wait # in case there's another insert/update still running in background
|
||||
run_stmt "$stmt"
|
||||
res=$?
|
||||
fi
|
||||
|
10
setup.sh
10
setup.sh
@ -51,12 +51,10 @@ run_setup() {
|
||||
log "FINISHED CREATING DB"
|
||||
fi
|
||||
|
||||
if [[ ! -d "$DIR/themes" ]]; then
|
||||
log "themes directory does not exist in filesystem... Creating and moving themes"
|
||||
mkdir -p "$DIR/themes"
|
||||
cp themes/* "$DIR/themes/"
|
||||
log "Theme files moved..."
|
||||
fi
|
||||
# log "themes directory does not exist in filesystem... Creating and moving themes"
|
||||
mkdir -p "$DIR/themes"
|
||||
cp themes/* "$DIR/themes/"
|
||||
log "Theme files moved..."
|
||||
|
||||
log "Creating mpv/scripts/ directory if it doesn't exist..."
|
||||
mkdir -p "$MPV_DIR/scripts/"
|
||||
|
@ -1,4 +1,4 @@
|
||||
CREATE TABLE file_history (
|
||||
CREATE TABLE IF NOT EXISTS file_history (
|
||||
id integer PRIMARY KEY AUTOINCREMENT,
|
||||
directory varchar(200) NOT NULL,
|
||||
filename varchar(200) NOT NULL,
|
||||
@ -8,5 +8,5 @@ CREATE TABLE file_history (
|
||||
UNIQUE (directory, filename)
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX dir_filename_idx ON file_history (directory, filename);
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS dir_filename_idx ON file_history (directory, filename);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
CREATE TABLE search_history (
|
||||
CREATE TABLE IF NOT EXISTS search_history (
|
||||
id integer PRIMARY KEY AUTOINCREMENT,
|
||||
anime_name varchar(200) NOT NULL,
|
||||
search_date DATETIME NOT NULL,
|
||||
@ -6,5 +6,5 @@ CREATE TABLE search_history (
|
||||
UNIQUE (anime_name, search_date)
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX anime_search_idx ON search_history (anime_name, search_date);
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS anime_search_idx ON search_history (anime_name, search_date);
|
||||
|
||||
|
@ -50,7 +50,7 @@ element {
|
||||
border: 0;
|
||||
cursor: pointer;
|
||||
margin: 1px 0px;
|
||||
border-radius: 12px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
element normal.normal {
|
||||
background-color: var(normal-background);
|
||||
@ -139,18 +139,45 @@ button selected {
|
||||
background-color: var(selected-normal-background);
|
||||
text-color: var(selected-normal-foreground);
|
||||
}
|
||||
inputbar {
|
||||
padding: 7px;
|
||||
margin: 7px;
|
||||
spacing: 0;
|
||||
text-color: var(normal-foreground);
|
||||
background-color: var(nord3);
|
||||
children: [ entry ];
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
entry {
|
||||
spacing: 0;
|
||||
cursor: text;
|
||||
text-color: var(normal-foreground);
|
||||
background-color: var(nord3);
|
||||
}
|
||||
|
||||
inputbar {
|
||||
padding: 7px;
|
||||
margin: 7px;
|
||||
spacing: 0;
|
||||
text-color: var(normal-foreground);
|
||||
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
|
||||
}
|
||||
|
||||
case-indicator {
|
||||
spacing: 0;
|
||||
text-color: var(nord15);
|
||||
margin: 0 0 0 0.5%;
|
||||
}
|
||||
|
||||
entry {
|
||||
padding: 4px 8px;
|
||||
spacing: 0;
|
||||
text-color: var(nord8);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
prompt {
|
||||
spacing: 0;
|
||||
text-color: var(nord15);
|
||||
padding: 4px 0px;
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
expand: false;
|
||||
str: ":";
|
||||
margin: 0px 0.3em 0em 0em ;
|
||||
text-color: var(nord15);
|
||||
padding: 4px 0px;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user