; ***************************************************************************
; copyright   : (C) 2026 by Martin Preuss
; email       : martin@libchipcard.de
;
; ***************************************************************************
; * This file is part of the project "AqHome".                              *
; * Please see toplevel file COPYING of that project for license details.   *
; ***************************************************************************

#ifndef AQH_AVR_DEVICE_C03_STYLE_ASM
#define AQH_AVR_DEVICE_C03_STYLE_ASM



; title window style
.equ STYLE_TITLE_BGCOL                = DISPLAY_COLOR_NAVY
.equ STYLE_TITLE_FGCOL                = DISPLAY_COLOR_WHITE
.equ STYLE_TITLE_BORDERCOL            = DISPLAY_COLOR_WHITE
.equ STYLE_TITLE_SHADOWCOL            = DISPLAY_COLOR_DARKGREY
.equ STYLE_TITLE_FONT                 = ili9341Font12x16_1
.equ STYLE_TITLE_FONT_WIDTH           = 12
.equ STYLE_TITLE_FONT_HEIGHT          = 16


; window style
.equ STYLE_WIN_BGCOL_NORM             = DISPLAY_COLOR_LIGHTGREY
.equ STYLE_WIN_FGCOL_NORM             = DISPLAY_COLOR_BLACK
.equ STYLE_WIN_BORDERCOL_NORM         = DISPLAY_COLOR_BLACK
.equ STYLE_WIN_SHADOWCOL_NORM         = DISPLAY_COLOR_DARKGREY

.equ STYLE_WIN_BGCOL_ACTIVATED        = DISPLAY_COLOR_NAVY
.equ STYLE_WIN_FGCOL_ACTIVATED        = DISPLAY_COLOR_WHITE
.equ STYLE_WIN_BORDERCOL_ACTIVATED    = DISPLAY_COLOR_WHITE
.equ STYLE_WIN_SHADOWCOL_ACTIVATED    = DISPLAY_COLOR_DARKGREY

.equ STYLE_WIN_FONT                   = ili9341Font12x16_1
.equ STYLE_WIN_FONT_WIDTH             = 12
.equ STYLE_WIN_FONT_HEIGHT            = 16


; button style
.equ STYLE_BUTTON_BGCOL_NORM          = DISPLAY_COLOR_WHITE
.equ STYLE_BUTTON_FGCOL_NORM          = DISPLAY_COLOR_BLACK
.equ STYLE_BUTTON_BORDERCOL_NORM      = DISPLAY_COLOR_BLACK
.equ STYLE_BUTTON_SHADOWCOL_NORM      = DISPLAY_COLOR_DARKGREY

.equ STYLE_BUTTON_BGCOL_ACTIVATED     = DISPLAY_COLOR_NAVY
.equ STYLE_BUTTON_FGCOL_ACTIVATED     = DISPLAY_COLOR_WHITE
.equ STYLE_BUTTON_BORDERCOL_ACTIVATED = DISPLAY_COLOR_WHITE
.equ STYLE_BUTTON_SHADOWCOL_ACTIVATED = DISPLAY_COLOR_DARKGREY

.equ STYLE_BUTTON_FONT                = ili9341Font12x16_1
.equ STYLE_BUTTON_FONT_WIDTH          = 12
.equ STYLE_BUTTON_FONT_HEIGHT         = 16



.equ STYLE_WIN_TITLE_HEIGHT           = (STYLE_TITLE_FONT_HEIGHT+4)



; deprecated
.equ STYLE_WIN_TITLE_BACKGROUND       = DISPLAY_COLOR_NAVY
.equ STYLE_WIN_TITLE_FOREGROUND       = DISPLAY_COLOR_WHITE

.equ STYLE_BUTTON_COL_BORDER          = DISPLAY_COLOR_BLACK
.equ STYLE_BUTTON_COL_BG_NORM         = DISPLAY_COLOR_WHITE
.equ STYLE_BUTTON_COL_BG_PRESSED      = DISPLAY_COLOR_NAVY
.equ STYLE_BUTTON_COL_FG_NORM         = DISPLAY_COLOR_BLACK
.equ STYLE_BUTTON_COL_FG_PRESSED      = DISPLAY_COLOR_WHITE

.equ STYLE_WIN_BACKGROUND             = DISPLAY_COLOR_LIGHTGREY
.equ STYLE_WIN_FOREGROUND             = DISPLAY_COLOR_BLACK





; ***************************************************************************
; data in FLASH

.cseg

DefaultStyle_Window:
  .dw STYLE_WIN_FGCOL_NORM           ; frontCol_norm
  .dw STYLE_WIN_BGCOL_NORM           ; backCol_norm
  .dw STYLE_WIN_BORDERCOL_NORM       ; borderCol_norm
  .dw STYLE_WIN_SHADOWCOL_NORM       ; shadowCol_norm
  
  .dw STYLE_WIN_FGCOL_ACTIVATED      ; frontCol_activated
  .dw STYLE_WIN_BGCOL_ACTIVATED      ; backCol_activated
  .dw STYLE_WIN_BORDERCOL_ACTIVATED  ; borderCol_activated
  .dw STYLE_WIN_SHADOWCOL_ACTIVATED  ; shadowCol_activated

  .db 2, 2                           ; outerBorderSize, innerBorderSize
  .dw (STYLE_WIN_FONT*2)             ; font
  .db STYLE_WIN_FONT_WIDTH, \
      STYLE_WIN_FONT_HEIGHT          ; charWidth, charHeight



DefaultStyle_Button:
  .dw STYLE_BUTTON_FGCOL_NORM           ; frontCol_norm
  .dw STYLE_BUTTON_BGCOL_NORM           ; backCol_norm
  .dw STYLE_BUTTON_BORDERCOL_NORM       ; borderCol_norm
  .dw STYLE_BUTTON_SHADOWCOL_NORM       ; shadowCol_norm
  
  .dw STYLE_BUTTON_FGCOL_ACTIVATED      ; frontCol_activated
  .dw STYLE_BUTTON_BGCOL_ACTIVATED      ; backCol_activated
  .dw STYLE_BUTTON_BORDERCOL_ACTIVATED  ; borderCol_activated
  .dw STYLE_BUTTON_SHADOWCOL_ACTIVATED  ; shadowCol_activated

  .db 2, 2                              ; outerBorderSize, innerBorderSize
  .dw (STYLE_BUTTON_FONT*2)             ; font
  .db STYLE_BUTTON_FONT_WIDTH, \
      STYLE_BUTTON_FONT_HEIGHT          ; charWidth, charHeight


DefaultStyle_SpacyButton:
  .dw STYLE_BUTTON_FGCOL_NORM           ; frontCol_norm
  .dw STYLE_BUTTON_BGCOL_NORM           ; backCol_norm
  .dw STYLE_BUTTON_BORDERCOL_NORM       ; borderCol_norm
  .dw STYLE_BUTTON_SHADOWCOL_NORM       ; shadowCol_norm
  
  .dw STYLE_BUTTON_FGCOL_ACTIVATED      ; frontCol_activated
  .dw STYLE_BUTTON_BGCOL_ACTIVATED      ; backCol_activated
  .dw STYLE_BUTTON_BORDERCOL_ACTIVATED  ; borderCol_activated
  .dw STYLE_BUTTON_SHADOWCOL_ACTIVATED  ; shadowCol_activated

  .db 8, 2                              ; outerBorderSize, innerBorderSize
  .dw (STYLE_BUTTON_FONT*2)             ; font
  .db STYLE_BUTTON_FONT_WIDTH, \
      STYLE_BUTTON_FONT_HEIGHT          ; charWidth, charHeight





#endif

