mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-10-28 04:44:11 -07: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="$?"
|
res="$?"
|
||||||
if [[ $res -gt 0 ]]; then
|
if [[ $res -gt 0 ]]; then
|
||||||
logger "Match found... Updating row in history db..."
|
logger "Match found... Updating row in history db..."
|
||||||
|
wait # in case there's another insert/update still running in background
|
||||||
update_date "$@"
|
update_date "$@"
|
||||||
res=$?
|
res=$?
|
||||||
else
|
else
|
||||||
@ -265,6 +266,7 @@ insert_history() {
|
|||||||
VALUES('$1', '$2', '$datetime');"
|
VALUES('$1', '$2', '$datetime');"
|
||||||
fi
|
fi
|
||||||
logger "INSERT STATEMENT -> $stmt"
|
logger "INSERT STATEMENT -> $stmt"
|
||||||
|
wait # in case there's another insert/update still running in background
|
||||||
run_stmt "$stmt"
|
run_stmt "$stmt"
|
||||||
res=$?
|
res=$?
|
||||||
fi
|
fi
|
||||||
|
10
setup.sh
10
setup.sh
@ -51,12 +51,10 @@ run_setup() {
|
|||||||
log "FINISHED CREATING DB"
|
log "FINISHED CREATING DB"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -d "$DIR/themes" ]]; then
|
# log "themes directory does not exist in filesystem... Creating and moving themes"
|
||||||
log "themes directory does not exist in filesystem... Creating and moving themes"
|
mkdir -p "$DIR/themes"
|
||||||
mkdir -p "$DIR/themes"
|
cp themes/* "$DIR/themes/"
|
||||||
cp themes/* "$DIR/themes/"
|
log "Theme files moved..."
|
||||||
log "Theme files moved..."
|
|
||||||
fi
|
|
||||||
|
|
||||||
log "Creating mpv/scripts/ directory if it doesn't exist..."
|
log "Creating mpv/scripts/ directory if it doesn't exist..."
|
||||||
mkdir -p "$MPV_DIR/scripts/"
|
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,
|
id integer PRIMARY KEY AUTOINCREMENT,
|
||||||
directory varchar(200) NOT NULL,
|
directory varchar(200) NOT NULL,
|
||||||
filename varchar(200) NOT NULL,
|
filename varchar(200) NOT NULL,
|
||||||
@ -8,5 +8,5 @@ CREATE TABLE file_history (
|
|||||||
UNIQUE (directory, filename)
|
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,
|
id integer PRIMARY KEY AUTOINCREMENT,
|
||||||
anime_name varchar(200) NOT NULL,
|
anime_name varchar(200) NOT NULL,
|
||||||
search_date DATETIME NOT NULL,
|
search_date DATETIME NOT NULL,
|
||||||
@ -6,5 +6,5 @@ CREATE TABLE search_history (
|
|||||||
UNIQUE (anime_name, search_date)
|
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;
|
border: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin: 1px 0px;
|
margin: 1px 0px;
|
||||||
border-radius: 12px;
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
element normal.normal {
|
element normal.normal {
|
||||||
background-color: var(normal-background);
|
background-color: var(normal-background);
|
||||||
@ -139,18 +139,45 @@ button selected {
|
|||||||
background-color: var(selected-normal-background);
|
background-color: var(selected-normal-background);
|
||||||
text-color: var(selected-normal-foreground);
|
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 {
|
entry {
|
||||||
spacing: 0;
|
spacing: 0;
|
||||||
cursor: text;
|
cursor: text;
|
||||||
text-color: var(normal-foreground);
|
text-color: var(normal-foreground);
|
||||||
background-color: var(nord3);
|
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