forked from toolkit-for-ynab/toolkit-for-ynab
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new feature (toolkit-for-ynab#3047)
- Loading branch information
1 parent
edfb810
commit b83c87c
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/extension/features/general/emphasize-negative-loans/index.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* Sidebar Numbers */ | ||
.nav-account.loan .negative { | ||
background-color: #fff !important; | ||
background-color: var(--sidebar_account_negative_balance_background) !important; | ||
color: #ca481d !important; | ||
color: var(--label_negative) !important; | ||
border-radius: 1em; | ||
display: block; | ||
font-weight: 700 !important; | ||
margin: 0 -0.265rem 0.2rem 0.5rem !important; | ||
margin-bottom: 0.2em; | ||
margin-right: -0.265rem; | ||
padding: 0 0.4em !important; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
} |
7 changes: 7 additions & 0 deletions
7
src/extension/features/general/emphasize-negative-loans/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Feature } from 'toolkit/extension/features/feature'; | ||
|
||
export class EmphasizeNegativeLoans extends Feature { | ||
injectCSS() { | ||
return require('./index.css'); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/extension/features/general/emphasize-negative-loans/settings.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module.exports = { | ||
name: 'EmphasizeNegativeLoans', | ||
type: 'checkbox', | ||
default: false, | ||
section: 'general', | ||
title: 'Emphasize Negative Loans', | ||
description: | ||
'Emphasize loans with negative balances similar to how other negative accounts are emphasized.', | ||
}; |