-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe80ae7
commit 95c0b46
Showing
4 changed files
with
120 additions
and
91 deletions.
There are no files selected for viewing
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
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
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,72 @@ | ||
package theme | ||
|
||
import "github.com/knipferrc/fm/internal/constants" | ||
|
||
type Theme struct { | ||
SelectedTreeItemColor string | ||
UnselectedTreeItemColor string | ||
ActivePaneBorderColor string | ||
InactivePaneBorderColor string | ||
SpinnerColor string | ||
StatusBarSelectedFileForegroundColor string | ||
StatusBarSelectedFileBackgroundColor string | ||
StatusBarBarForegroundColor string | ||
StatusBarBarBackgroundColor string | ||
StatusBarTotalFilesForegroundColor string | ||
StatusBarTotalFilesBackgroundColor string | ||
StatusBarLogoForegroundColor string | ||
StatusBarLogoBackgroundColor string | ||
} | ||
|
||
func GetCurrentTheme(theme string) Theme { | ||
switch theme { | ||
case "default": | ||
return Theme{ | ||
SelectedTreeItemColor: constants.Colors.Pink, | ||
UnselectedTreeItemColor: constants.Colors.White, | ||
ActivePaneBorderColor: constants.Colors.Pink, | ||
InactivePaneBorderColor: constants.Colors.White, | ||
SpinnerColor: constants.Colors.Pink, | ||
StatusBarSelectedFileForegroundColor: constants.Colors.White, | ||
StatusBarSelectedFileBackgroundColor: constants.Colors.Pink, | ||
StatusBarBarForegroundColor: constants.Colors.White, | ||
StatusBarBarBackgroundColor: constants.Colors.DarkGray, | ||
StatusBarTotalFilesForegroundColor: constants.Colors.White, | ||
StatusBarTotalFilesBackgroundColor: constants.Colors.LightPurple, | ||
StatusBarLogoForegroundColor: constants.Colors.White, | ||
StatusBarLogoBackgroundColor: constants.Colors.DarkPurple, | ||
} | ||
case "gruvbox": | ||
return Theme{ | ||
SelectedTreeItemColor: constants.Colors.Orange, | ||
UnselectedTreeItemColor: constants.Colors.White, | ||
ActivePaneBorderColor: constants.Colors.Green, | ||
InactivePaneBorderColor: constants.Colors.White, | ||
SpinnerColor: constants.Colors.Red, | ||
StatusBarSelectedFileForegroundColor: constants.Colors.White, | ||
StatusBarSelectedFileBackgroundColor: constants.Colors.Red, | ||
StatusBarBarForegroundColor: constants.Colors.White, | ||
StatusBarBarBackgroundColor: constants.Colors.DarkGray, | ||
StatusBarTotalFilesForegroundColor: constants.Colors.White, | ||
StatusBarTotalFilesBackgroundColor: constants.Colors.Yellow, | ||
StatusBarLogoForegroundColor: constants.Colors.White, | ||
StatusBarLogoBackgroundColor: constants.Colors.Blue, | ||
} | ||
default: | ||
return Theme{ | ||
SelectedTreeItemColor: constants.Colors.Pink, | ||
UnselectedTreeItemColor: constants.Colors.White, | ||
ActivePaneBorderColor: constants.Colors.Pink, | ||
InactivePaneBorderColor: constants.Colors.White, | ||
SpinnerColor: constants.Colors.Pink, | ||
StatusBarSelectedFileForegroundColor: constants.Colors.White, | ||
StatusBarSelectedFileBackgroundColor: constants.Colors.Pink, | ||
StatusBarBarForegroundColor: constants.Colors.White, | ||
StatusBarBarBackgroundColor: constants.Colors.DarkGray, | ||
StatusBarTotalFilesForegroundColor: constants.Colors.White, | ||
StatusBarTotalFilesBackgroundColor: constants.Colors.LightPurple, | ||
StatusBarLogoForegroundColor: constants.Colors.White, | ||
StatusBarLogoBackgroundColor: constants.Colors.DarkPurple, | ||
} | ||
} | ||
} |
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