Browse Source
			
			
			Bugfix/fix warn color (#211)
			
				* Fix warn color
* Update changelog
			
			
				pull/213/head
			
			
		 
		
			
				
					
						 Thomas
					
					4 years ago
						Thomas
					
					4 years ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 5 changed files with 
28 additions and 
6 deletions
			 
			
		 
		
			
				- 
					
					
					 
					CHANGELOG.md
				
- 
					
					
					 
					apps/client/src/app/app.component.ts
				
- 
					
					
					 
					libs/common/src/lib/config.ts
				
- 
					
					
					 
					package.json
				
- 
					
					
					 
					yarn.lock
				
				
				
					
						
							
								
									
	
		
		
			
				
					|  | @ -5,6 +5,16 @@ All notable changes to this project will be documented in this file. | 
			
		
	
		
		
			
				
					|  |  | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |  |  | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | 
			
		
	
		
		
			
				
					|  |  | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |  |  | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | ## Unreleased | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | ### Changed | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | - Upgraded `angular-material-css-vars` from version `2.0.0` to `2.1.0` | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | ### Fixed | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | - Fixed the warn color (button) of the theme | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | ## 1.25.0 - 11.07.2021 |  |  | ## 1.25.0 - 11.07.2021 | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | ### Added |  |  | ### Added | 
			
		
	
	
		
		
			
				
					|  | 
 | 
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					|  | @ -6,7 +6,11 @@ import { | 
			
		
	
		
		
			
				
					|  |  |   OnInit |  |  |   OnInit | 
			
		
	
		
		
			
				
					|  |  | } from '@angular/core'; |  |  | } from '@angular/core'; | 
			
		
	
		
		
			
				
					|  |  | import { NavigationEnd, PRIMARY_OUTLET, Router } from '@angular/router'; |  |  | import { NavigationEnd, PRIMARY_OUTLET, Router } from '@angular/router'; | 
			
		
	
		
		
			
				
					
					|  |  | import { primaryColorHex, secondaryColorHex } from '@ghostfolio/common/config'; |  |  | import { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  |   primaryColorHex, | 
			
		
	
		
		
			
				
					|  |  |  |  |  |   secondaryColorHex, | 
			
		
	
		
		
			
				
					|  |  |  |  |  |   warnColorHex | 
			
		
	
		
		
			
				
					|  |  |  |  |  | } from '@ghostfolio/common/config'; | 
			
		
	
		
		
			
				
					|  |  | import { InfoItem, User } from '@ghostfolio/common/interfaces'; |  |  | import { InfoItem, User } from '@ghostfolio/common/interfaces'; | 
			
		
	
		
		
			
				
					|  |  | import { hasPermission, permissions } from '@ghostfolio/common/permissions'; |  |  | import { hasPermission, permissions } from '@ghostfolio/common/permissions'; | 
			
		
	
		
		
			
				
					|  |  | import { MaterialCssVarsService } from 'angular-material-css-vars'; |  |  | import { MaterialCssVarsService } from 'angular-material-css-vars'; | 
			
		
	
	
		
		
			
				
					|  | @ -109,5 +113,6 @@ export class AppComponent implements OnDestroy, OnInit { | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     this.materialCssVarsService.setPrimaryColor(primaryColorHex); |  |  |     this.materialCssVarsService.setPrimaryColor(primaryColorHex); | 
			
		
	
		
		
			
				
					|  |  |     this.materialCssVarsService.setAccentColor(secondaryColorHex); |  |  |     this.materialCssVarsService.setAccentColor(secondaryColorHex); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     this.materialCssVarsService.setWarnColor(warnColorHex); | 
			
		
	
		
		
			
				
					|  |  |   } |  |  |   } | 
			
		
	
		
		
			
				
					|  |  | } |  |  | } | 
			
		
	
	
		
		
			
				
					|  | 
 | 
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					|  | @ -33,6 +33,13 @@ export const secondaryColorRgb = { | 
			
		
	
		
		
			
				
					|  |  |   b: 207 |  |  |   b: 207 | 
			
		
	
		
		
			
				
					|  |  | }; |  |  | }; | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | export const warnColorHex = '#dc3545'; | 
			
		
	
		
		
			
				
					|  |  |  |  |  | export const warnColorRgb = { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |   r: 220, | 
			
		
	
		
		
			
				
					|  |  |  |  |  |   g: 53, | 
			
		
	
		
		
			
				
					|  |  |  |  |  |   b: 69 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | }; | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | export const DEFAULT_DATE_FORMAT = 'dd.MM.yyyy'; |  |  | export const DEFAULT_DATE_FORMAT = 'dd.MM.yyyy'; | 
			
		
	
		
		
			
				
					|  |  | export const DEFAULT_DATE_FORMAT_MONTH_YEAR = 'MMM yyyy'; |  |  | export const DEFAULT_DATE_FORMAT_MONTH_YEAR = 'MMM yyyy'; | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  | 
 | 
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					|  | @ -71,7 +71,7 @@ | 
			
		
	
		
		
			
				
					|  |  |     "@simplewebauthn/typescript-types": "3.0.0", |  |  |     "@simplewebauthn/typescript-types": "3.0.0", | 
			
		
	
		
		
			
				
					|  |  |     "@stripe/stripe-js": "1.15.0", |  |  |     "@stripe/stripe-js": "1.15.0", | 
			
		
	
		
		
			
				
					|  |  |     "alphavantage": "2.2.0", |  |  |     "alphavantage": "2.2.0", | 
			
		
	
		
		
			
				
					
					|  |  |     "angular-material-css-vars": "2.0.0", |  |  |     "angular-material-css-vars": "2.1.0", | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |     "bent": "7.3.12", |  |  |     "bent": "7.3.12", | 
			
		
	
		
		
			
				
					|  |  |     "bootstrap": "4.6.0", |  |  |     "bootstrap": "4.6.0", | 
			
		
	
		
		
			
				
					|  |  |     "cache-manager": "3.4.3", |  |  |     "cache-manager": "3.4.3", | 
			
		
	
	
		
		
			
				
					|  | 
 | 
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					|  | @ -3427,10 +3427,10 @@ alphavantage@2.2.0: | 
			
		
	
		
		
			
				
					|  |  |   dependencies: |  |  |   dependencies: | 
			
		
	
		
		
			
				
					|  |  |     cross-fetch "^3.0.5" |  |  |     cross-fetch "^3.0.5" | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  | angular-material-css-vars@2.0.0: |  |  | angular-material-css-vars@2.1.0: | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |   version "2.0.0" |  |  |   version "2.1.0" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |   resolved "https://registry.yarnpkg.com/angular-material-css-vars/-/angular-material-css-vars-2.0.0.tgz#a7df8380e8f781c31eeea7171b1cbd5bb91b8e4e" |  |  |   resolved "https://registry.yarnpkg.com/angular-material-css-vars/-/angular-material-css-vars-2.1.0.tgz#43eac3bb3e74f509914c69106a194e3eab3f02f9" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |   integrity sha512-20zCLolohn0ihGsK0+WgEN370jk9NabOQcUBEt7se9DtKzIVhXyvCRDkkQBVxwdP6kw9+J+oA3pZ6szJka4yXw== |  |  |   integrity sha512-lFVzWOm8sVprhKobvEy+53VkulCAYTC1evv7EjBCpshm964voeYJ6k2Aqq0yZFNKMaQeGpMvwXSEZVvOyBzvTQ== | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |   dependencies: |  |  |   dependencies: | 
			
		
	
		
		
			
				
					|  |  |     "@ctrl/tinycolor" "^2.6.0" |  |  |     "@ctrl/tinycolor" "^2.6.0" | 
			
		
	
		
		
			
				
					|  |  |     tslib "^2.0.0" |  |  |     tslib "^2.0.0" | 
			
		
	
	
		
		
			
				
					|  | 
 |