Skip to content

Commit

Permalink
Updated Passky to v7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zigazajc007 committed Jul 13, 2022
1 parent c35a246 commit 0e6d9af
Show file tree
Hide file tree
Showing 10 changed files with 311 additions and 91 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "com.rabbitcompany.passky"
minSdkVersion 28
targetSdkVersion 33
versionCode 12
versionName '6.3.0'
versionCode 13
versionName '7.0.0'
}

buildTypes {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/assets/css/tailwind.min.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
! tailwindcss v3.1.4 | MIT License | https://tailwindcss.com
! tailwindcss v3.1.6 | MIT License | https://tailwindcss.com
*/

/*
Expand Down
217 changes: 217 additions & 0 deletions app/src/main/assets/css/themes/nord.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
/*
Nord theme
*/

/*
Text colors
*/

.primaryColor{
color: #88c0d0 !important;
}

.secondaryColor{
color: #6B7280 !important;
}

.tertiaryColor{
color: #FFFFFF !important;
}

/*
Background colors
*/

.primaryBackgroundColor{
background-color: #2e3440 !important;
}

.secondaryBackgroundColor{
background-color: #3b4252 !important;
}

.tertiaryBackgroundColor{
background-color: #434c5e !important;
}

.quaternaryBackgroundColor{
background-color: #88c0d0 !important;
}

/*
Button colors
*/

.primaryButton{
background-color: #88c0d0 !important;
color: #FFFFFF !important;
}

.primaryButton:hover{
background-color: #7fbbcc !important;
}

.successButton{
background-color: #a2bd8b !important;
color: #FFFFFF !important;
}

.successButton:hover{
background-color: #97b57d !important;
}

.dangerButton{
background-color: #75647a !important;
color: #FFFFFF !important;
}

.dangerButton:hover{
background-color: #6b5c70 !important;
}

.cancelButton{
background-color: #434c5e !important;
border-color: #3b4252 !important;
color: #FFFFFF !important;
}

.cancelButton:hover{
background-color: #434c5e !important;
}

/*
Elements
*/

input{
background-color: #434c5e !important;
color: #FFFFFF !important;
border-color: #3b4252 !important;
}

textarea{
background-color: #434c5e !important;
color: #FFFFFF !important;
border-color: #3b4252 !important;
}

svg{
stroke: #88c0d0 !important;
}

/*
Main menu
*/

.mainMenuLink{
background-color: #3b4252 !important;
color: #6B7280 !important;
}

.mainMenuLink:hover{
color: #FFFFFF !important;
border-color: #D1D5DB !important;
}

.mainMenuLinkSelected{
color: #FFFFFF !important;
border-color: #88c0d0 !important;
}

.mainMenuMobileLink{
background-color: #3b4252 !important;
color: #FFFFFF !important;
}

.mainMenuMobileLink:hover{
background-color: #434c5e !important;
border-color: #6B7280 !important;
}

.mainMenuMobileLinkSelected{
background-color: #434c5e !important;
border-color: #88c0d0 !important;
color: #88c0d0 !important;
}

#main-menu-toggle-btn{
color: #9CA3AF !important;
}

#main-menu-toggle-btn:hover{
color: #6B7280 !important;
background-color: #434c5e !important;
}

/*
Border colors
*/

.primaryBorderColor{
border-color: #3b4252 !important;
}

/*
Placeholder colors
*/

.primaryBorderColor::placeholder{
color: #6B7280;
opacity: 1;
}

.primaryBorderColor::-ms-input-placeholder { /* Microsoft Edge */
color: #6B7280;
opacity: 1;
}

/*
Stroke colors
*/

.primaryStrokeColor{
stroke: #FFFFFF !important;
}

/*
Passwords
*/

.passwordsBackgroundColor{
background-color: #2e3440 !important;
}

.passwordsBorderColor{
border-color: #111827 !important;
}

/*
Import and Export buttons
*/

.importExportButtons{
color: #b1bfce !important;
border-color: #2e3440 !important;
}

.importExportButtons:hover{
color: #91a6ba !important;
}

/*
Scroll bar
*/

::-webkit-scrollbar-track {
background: #3b4252;
}

::-webkit-scrollbar-thumb {
background: #88c0d0;
}

::-webkit-scrollbar-thumb:hover {
background: #7fbbcc;
}
2 changes: 1 addition & 1 deletion app/src/main/assets/js/PasskyAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

static username(username){
if(typeof(username) == 'undefined' || username == null) return false;
return /^[a-z0-9.]{6,30}$/i.test(username);
return /^[a-z0-9._]{6,30}$/i.test(username);
}

static password(password){
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/assets/js/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function setTheme(){
if(readData('lang') == null || typeof(readData('lang')) == 'undefined') writeData('lang', 'en');
if(readData('sessionDuration') == null || typeof(readData('sessionDuration')) == 'undefined') writeData('sessionDuration', '20');

if(!(["dark", "tokyoNight", "monokai", "solarizedDark", "light", "blue", "dracula", "gray"].includes(readData('theme')))) writeData('theme', 'dark');
if(!(["dark", "tokyoNight", "monokai", "solarizedDark", "light", "blue", "nord", "dracula", "gray"].includes(readData('theme')))) writeData('theme', 'dark');
document.getElementById("css-theme").href = "css/themes/" + readData('theme') + ".css";
}

Expand Down
Loading

0 comments on commit 0e6d9af

Please sign in to comment.