diff --git a/htdocs/langs/en_US/cashdesk.lang b/htdocs/langs/en_US/cashdesk.lang index 8c34ef482a4..9ba2a068478 100644 --- a/htdocs/langs/en_US/cashdesk.lang +++ b/htdocs/langs/en_US/cashdesk.lang @@ -81,4 +81,6 @@ CustomReceipt=Custom Receipt ReceiptName=Receipt Name ProductSupplements=Product Supplements SupplementCategory=Supplement category -HeadBar=Head Bar \ No newline at end of file +ColorTheme=Color theme +Colorful=Colorful +HeadBar=Head Bar diff --git a/htdocs/takepos/admin/setup.php b/htdocs/takepos/admin/setup.php index 691451ced50..0e40f2c3f36 100644 --- a/htdocs/takepos/admin/setup.php +++ b/htdocs/takepos/admin/setup.php @@ -79,6 +79,7 @@ if (GETPOST('action', 'alpha') == 'set') $res = dolibarr_set_const($db, "TAKEPOS_SUPPLEMENTS_CATEGORY", GETPOST('TAKEPOS_SUPPLEMENTS_CATEGORY', 'alpha'), 'chaine', 0, '', $conf->entity); $res = dolibarr_set_const($db, "TAKEPOS_AUTO_PRINT_TICKETS", GETPOST('TAKEPOS_AUTO_PRINT_TICKETS', 'int'), 'int', 0, '', $conf->entity); $res = dolibarr_set_const($db, "TAKEPOS_NUMPAD", GETPOST('TAKEPOS_NUMPAD', 'alpha'), 'chaine', 0, '', $conf->entity); + $res = dolibarr_set_const($db, "TAKEPOS_COLOR_THEME", GETPOST('TAKEPOS_COLOR_THEME', 'alpha'), 'chaine', 0, '', $conf->entity); $res = dolibarr_set_const($db, "TAKEPOS_NUM_TERMINALS", GETPOST('TAKEPOS_NUM_TERMINALS', 'alpha'), 'chaine', 0, '', $conf->entity); $res = dolibarr_set_const($db, "TAKEPOS_DIRECT_PAYMENT", GETPOST('TAKEPOS_DIRECT_PAYMENT', 'int'), 'int', 0, '', $conf->entity); $res = dolibarr_set_const($db, "TAKEPOS_CUSTOM_RECEIPT", GETPOST('TAKEPOS_CUSTOM_RECEIPT', 'int'), 'int', 0, '', $conf->entity); @@ -257,6 +258,14 @@ $array = array(0=>$langs->trans("Numberspad"), 1=>$langs->trans("BillsCoinsPad") print $form->selectarray('TAKEPOS_NUMPAD', $array, (empty($conf->global->TAKEPOS_NUMPAD) ? '0' : $conf->global->TAKEPOS_NUMPAD), 0); print "\n"; +// Color theme +print ''; +print $langs->trans("ColorTheme"); +print ''; +$array = array(0=>"eldy", 1=>$langs->trans("Colorful")); +print $form->selectarray('TAKEPOS_COLOR_THEME', $array, (empty($conf->global->TAKEPOS_COLOR_THEME) ? '0' : $conf->global->TAKEPOS_COLOR_THEME), 0); +print "\n"; + // Direct Payment print ''; print $langs->trans('DirectPaymentButton'); diff --git a/htdocs/takepos/css/colorful.css b/htdocs/takepos/css/colorful.css new file mode 100644 index 00000000000..3cfd18e72f1 --- /dev/null +++ b/htdocs/takepos/css/colorful.css @@ -0,0 +1,25 @@ +button.calcbutton { + background-color: #008000 !important; +} + +button.calcbutton.poscolorblue { + background-color: #0000FF !important; +} + +button.calcbutton2 { + background-color: #0000FF !important; +} + +button.calcbutton2.poscolordelete { + background-color: #FF0000 !important; + color: #FFFFFF !important; +} + +button.actionbutton { + background: #FFB100 !important; +} + +tr.selected, tr.selected td { + background-color: #0000FF !important; + color: #FFFFFF !important; +} \ No newline at end of file diff --git a/htdocs/takepos/pay.php b/htdocs/takepos/pay.php index a56ff9e4564..96ccea0a4d7 100644 --- a/htdocs/takepos/pay.php +++ b/htdocs/takepos/pay.php @@ -93,6 +93,9 @@ if ($resql) { } ?> +global->TAKEPOS_COLOR_THEME == 1) print ''; +?> diff --git a/htdocs/takepos/takepos.php b/htdocs/takepos/takepos.php index 2e94885109a..ed9374cd41f 100644 --- a/htdocs/takepos/takepos.php +++ b/htdocs/takepos/takepos.php @@ -98,6 +98,9 @@ top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); ?> +global->TAKEPOS_COLOR_THEME == 1) print ''; +?>