Skip to content

Commit

Permalink
Update README for clarity and adjust color themes in the application
Browse files Browse the repository at this point in the history
  • Loading branch information
ndonathan committed Nov 24, 2024
1 parent 83d0b6d commit 4bba0b5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

## Introduction 🚀

Go Task Tracker is a powerful cross-platform desktop application built with Go and [Fyne](https://fyne.io/). This robust task management tool helps users efficiently organize, track, and complete tasks while maintaining a comprehensive history of achievements. Supporting macOS*, Linux, and Windows platforms, it delivers a consistent and intuitive experience across all operating systems.
This task tracker is a simple cross-platform* desktop application built with Go and [Fyne](https://fyne.io/). This task management tool helps users efficiently organize, track, and complete tasks while maintaining a history of achievements.

*macOS support is currently in development and will be available at some point in the future due to complexities with Xcode.
*macOS support is currently in development and will be available at some point in the future due to complexities with Xcode. Maybe.

![Build and Release](./assets/Example_07.png)

Expand Down Expand Up @@ -40,8 +40,8 @@ Go Task Tracker is a powerful cross-platform desktop application built with Go a

1. **Clone the Repository**
```bash
git clone https://github.com/ndonathan/go_tasks.git
cd go_tasks
git clone https://github.com/NetworkRehab/go_tasks.git
cd go_tasks/cmd/tasks
```

2. **Build for Your Platform**
Expand Down Expand Up @@ -94,7 +94,7 @@ Go Task Tracker is a powerful cross-platform desktop application built with Go a
- Stable, tested versions

### Build Process
1. Automated compilation for all platforms
1. Automated compilation for Linux and Windows
2. Asset packaging and bundling
3. Automatic release creation
4. Binary distribution
Expand All @@ -113,7 +113,8 @@ We welcome contributions! Follow these steps:
- Follow Go best practices
- Include unit tests
- Update documentation
- Maintain cross-platform compatibility
- Maintain cross-platform compatibility
- (Except when macOS is being difficult...)

## License & Credits 📝

Expand Down
16 changes: 8 additions & 8 deletions cmd/tasks/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (m *customTheme) BackgroundColor() color.Color {
}

func (m *customTheme) ButtonColor() color.Color {
return color.Gray{Y: 230}
return color.RGBA{R: 255, G: 255, B: 0, A: 255} // Yellow color
}

func (m *customTheme) DisabledButtonColor() color.Color {
Expand Down Expand Up @@ -74,7 +74,7 @@ func (m *customTheme) DisabledIconColor() color.Color {
}

func (m *customTheme) PlaceHolderColor() color.Color {
return color.Gray{Y: 128}
return color.RGBA{R: 255, G: 128, B: 0, A: 99} // Yellow color
}

func (m *customTheme) PrimaryColor() color.Color {
Expand All @@ -89,11 +89,11 @@ func (m *customTheme) FocusColor() color.Color {
return color.RGBA{R: 0, G: 122, B: 255, A: 255}
}
func (m *customTheme) ScrollBarColor() color.Color {
return color.Gray{Y: uint8(0.6 * 255)}
return color.RGBA{R: 255, G: 0, B: 0, A: 255} // Red color
}

func (m *customTheme) ShadowColor() color.Color {
return color.Gray{Y: uint8(0.4 * 255)}
return color.RGBA{R: 255, G: 0, B: 0, A: 99} // Yellow color
}

func (m *customTheme) TextSize() int {
Expand Down Expand Up @@ -232,10 +232,10 @@ func main() {
Window.CenterOnScreen()

// Add keyboard shortcuts
setupKeyboardShortcuts(Window, state)
setupKeyboardShortcuts(Window)

// Initial data load
refreshData(ctx, state)
refreshData(state)

Window.ShowAndRun()
}
Expand Down Expand Up @@ -554,7 +554,7 @@ func createUI(window fyne.Window, state *AppState) fyne.CanvasObject {
return split
}

func setupKeyboardShortcuts(w fyne.Window, state *AppState) {
func setupKeyboardShortcuts(w fyne.Window) {
shortcut := &desktop.CustomShortcut{
KeyName: fyne.KeyN,
Modifier: fyne.KeyModifierControl,
Expand All @@ -565,7 +565,7 @@ func setupKeyboardShortcuts(w fyne.Window, state *AppState) {
})
}

func refreshData(ctx context.Context, state *AppState) {
func refreshData(state *AppState) {
// Refresh tasks and completions
tasks, err := GetTasks(state.db)
if err != nil {
Expand Down

0 comments on commit 4bba0b5

Please sign in to comment.