1/* 2 * tkMacOSXDefault.h -- 3 * 4 * This file defines the defaults for all options for all of 5 * the Tk widgets. 6 * 7 * Copyright (c) 1991-1994 The Regents of the University of California. 8 * Copyright (c) 1994-1997 Sun Microsystems, Inc. 9 * Copyright 2001-2009, Apple Inc. 10 * Copyright (c) 2006-2009 Daniel A. Steffen <das@users.sourceforge.net> 11 * 12 * See the file "license.terms" for information on usage and redistribution 13 * of this file, and for a DISCLAIMER OF ALL WARRANTIES. 14 * 15 * RCS: @(#) $Id$ 16 */ 17 18#ifndef _TKMACDEFAULT 19#define _TKMACDEFAULT 20 21#ifndef TK_MAC_BUTTON_USE_COMPATIBILITY_METRICS 22#define TK_MAC_BUTTON_USE_COMPATIBILITY_METRICS 1 23#endif 24 25/* 26 * The definitions below provide symbolic names for the default colors. 27 * NORMAL_BG - Normal background color. 28 * ACTIVE_BG - Background color when widget is active. 29 * SELECT_BG - Background color for selected text. 30 * SELECT_FG - Foreground color for selected text. 31 * TROUGH - Background color for troughs in scales and scrollbars. 32 * INDICATOR - Color for indicator when button is selected. 33 * DISABLED - Foreground color when widget is disabled. 34 */ 35 36#define BLACK "Black" 37#define WHITE "White" 38#define NORMAL_BG "systemWindowBody" 39#define ACTIVE_BG "systemButtonFacePressed" 40#define ACTIVE_FG "systemPushButtonPressedText" 41#define SELECT_BG "systemHighlight" 42#define SELECT_FG None 43#define INACTIVE_SELECT_BG "systemHighlightSecondary" 44#define TROUGH "#c3c3c3" 45#define INDICATOR "#b03060" 46#define DISABLED "#a3a3a3" 47 48/* 49 * Defaults for labels, buttons, checkbuttons, and radiobuttons: 50 */ 51 52#define DEF_BUTTON_ANCHOR "center" 53#define DEF_BUTTON_ACTIVE_BG_COLOR ACTIVE_BG 54#define DEF_BUTTON_ACTIVE_BG_MONO BLACK 55#define DEF_BUTTON_ACTIVE_FG_COLOR ACTIVE_FG 56#define DEF_CHKRAD_ACTIVE_FG_COLOR DEF_BUTTON_ACTIVE_FG_COLOR 57#define DEF_BUTTON_ACTIVE_FG_MONO WHITE 58/* #define DEF_BUTTON_BG_COLOR "systemButtonFace"*/ 59#define DEF_BUTTON_BG_COLOR WHITE 60#define DEF_BUTTON_BG_MONO WHITE 61#define DEF_BUTTON_BITMAP "" 62#define DEF_BUTTON_BORDER_WIDTH "2" 63#define DEF_BUTTON_CURSOR "" 64#define DEF_BUTTON_COMMAND "" 65#define DEF_BUTTON_COMPOUND "none" 66#define DEF_BUTTON_DEFAULT "disabled" 67#define DEF_BUTTON_DISABLED_FG_COLOR DISABLED 68#define DEF_BUTTON_DISABLED_FG_MONO "" 69#define DEF_BUTTON_FG "systemButtonText" 70#define DEF_CHKRAD_FG DEF_BUTTON_FG 71#define DEF_BUTTON_FONT "TkDefaultFont" 72#define DEF_BUTTON_HEIGHT "0" 73#define DEF_BUTTON_HIGHLIGHT_BG_COLOR DEF_BUTTON_BG_COLOR 74#define DEF_BUTTON_HIGHLIGHT_BG_MONO DEF_BUTTON_BG_MONO 75#define DEF_BUTTON_HIGHLIGHT "systemButtonFrame" 76#define DEF_LABEL_HIGHLIGHT_WIDTH "0" 77#if TK_MAC_BUTTON_USE_COMPATIBILITY_METRICS 78#define DEF_BUTTON_HIGHLIGHT_WIDTH "4" 79#define DEF_BUTTON_HIGHLIGHT_WIDTH_NOCM "1" 80#else 81#define DEF_BUTTON_HIGHLIGHT_WIDTH "1" 82#endif 83#define DEF_BUTTON_IMAGE ((char *) NULL) 84#define DEF_BUTTON_INDICATOR "1" 85#define DEF_BUTTON_JUSTIFY "center" 86#define DEF_BUTTON_OFF_VALUE "0" 87#define DEF_BUTTON_ON_VALUE "1" 88#define DEF_BUTTON_TRISTATE_VALUE "" 89#define DEF_BUTTON_OVER_RELIEF "" 90#if TK_MAC_BUTTON_USE_COMPATIBILITY_METRICS 91#define DEF_BUTTON_PADX "12" 92#define DEF_BUTTON_PADX_NOCM "1" 93#else 94#define DEF_BUTTON_PADX "1" 95#endif 96#define DEF_LABCHKRAD_PADX "1" 97#if TK_MAC_BUTTON_USE_COMPATIBILITY_METRICS 98#define DEF_BUTTON_PADY "3" 99#define DEF_BUTTON_PADY_NOCM "1" 100#else 101#define DEF_BUTTON_PADY "1" 102#endif 103#define DEF_LABCHKRAD_PADY "1" 104#define DEF_BUTTON_RELIEF "flat" 105#define DEF_LABCHKRAD_RELIEF "flat" 106#define DEF_BUTTON_REPEAT_DELAY "0" 107#define DEF_BUTTON_REPEAT_INTERVAL "0" 108#define DEF_BUTTON_SELECT_COLOR INDICATOR 109#define DEF_BUTTON_SELECT_MONO BLACK 110#define DEF_BUTTON_SELECT_IMAGE ((char *) NULL) 111#define DEF_BUTTON_STATE "normal" 112#define DEF_LABEL_TAKE_FOCUS "0" 113#define DEF_BUTTON_TAKE_FOCUS ((char *) NULL) 114#define DEF_BUTTON_TEXT "" 115#define DEF_BUTTON_TEXT_VARIABLE "" 116#define DEF_BUTTON_UNDERLINE "-1" 117#define DEF_BUTTON_VALUE "" 118#define DEF_BUTTON_WIDTH "0" 119#define DEF_BUTTON_WRAP_LENGTH "0" 120#define DEF_RADIOBUTTON_VARIABLE "selectedButton" 121#define DEF_CHECKBUTTON_VARIABLE "" 122 123/* 124 * Defaults for canvases: 125 */ 126 127#define DEF_CANVAS_BG_COLOR NORMAL_BG 128#define DEF_CANVAS_BG_MONO WHITE 129#define DEF_CANVAS_BORDER_WIDTH "0" 130#define DEF_CANVAS_CLOSE_ENOUGH "1" 131#define DEF_CANVAS_CONFINE "1" 132#define DEF_CANVAS_CURSOR "" 133#define DEF_CANVAS_HEIGHT "7c" 134#define DEF_CANVAS_HIGHLIGHT_BG NORMAL_BG 135#define DEF_CANVAS_HIGHLIGHT BLACK 136#define DEF_CANVAS_HIGHLIGHT_WIDTH "3" 137#define DEF_CANVAS_INSERT_BG BLACK 138#define DEF_CANVAS_INSERT_BD_COLOR "0" 139#define DEF_CANVAS_INSERT_BD_MONO "0" 140#define DEF_CANVAS_INSERT_OFF_TIME "300" 141#define DEF_CANVAS_INSERT_ON_TIME "600" 142#define DEF_CANVAS_INSERT_WIDTH "2" 143#define DEF_CANVAS_RELIEF "flat" 144#define DEF_CANVAS_SCROLL_REGION "" 145#define DEF_CANVAS_SELECT_COLOR SELECT_BG 146#define DEF_CANVAS_SELECT_MONO BLACK 147#define DEF_CANVAS_SELECT_BD_COLOR "1" 148#define DEF_CANVAS_SELECT_BD_MONO "0" 149#define DEF_CANVAS_SELECT_FG_COLOR SELECT_FG 150#define DEF_CANVAS_SELECT_FG_MONO WHITE 151#define DEF_CANVAS_TAKE_FOCUS ((char *) NULL) 152#define DEF_CANVAS_WIDTH "10c" 153#define DEF_CANVAS_X_SCROLL_CMD "" 154#define DEF_CANVAS_X_SCROLL_INCREMENT "0" 155#define DEF_CANVAS_Y_SCROLL_CMD "" 156#define DEF_CANVAS_Y_SCROLL_INCREMENT "0" 157 158/* 159 * Defaults for entries: 160 */ 161 162/* 163 * I test the following two values in TkpDrawEntryBorderAndFocus 164 * to determine whether to use the native entry widget. So if 165 * you change the defaults to be different from these, then you 166 * won't get the native widget by default. 167 */ 168 169#define MAC_OSX_FOCUS_WIDTH 3 170#define MAC_OSX_ENTRY_BORDER 2 171#define MAC_OSX_ENTRY_RELIEF TK_RELIEF_SUNKEN 172#define MAC_OSX_ENTRY_SELECT_RELIEF TK_RELIEF_FLAT 173 174#define DEF_ENTRY_BG_COLOR NORMAL_BG 175#define DEF_ENTRY_BG_MONO WHITE 176#define DEF_ENTRY_BORDER_WIDTH "2" 177#define DEF_ENTRY_CURSOR "xterm" 178#define DEF_ENTRY_DISABLED_BG_COLOR NORMAL_BG 179#define DEF_ENTRY_DISABLED_BG_MONO WHITE 180#define DEF_ENTRY_DISABLED_FG DISABLED 181#define DEF_ENTRY_EXPORT_SELECTION "1" 182#define DEF_ENTRY_FONT "TkTextFont" 183#define DEF_ENTRY_FG BLACK 184#define DEF_ENTRY_HIGHLIGHT_BG NORMAL_BG 185#define DEF_ENTRY_HIGHLIGHT BLACK 186/* #define DEF_ENTRY_HIGHLIGHT_WIDTH "3" */ 187#define DEF_ENTRY_HIGHLIGHT_WIDTH "3" 188#define DEF_ENTRY_INSERT_BG BLACK 189#define DEF_ENTRY_INSERT_BD_COLOR "0" 190#define DEF_ENTRY_INSERT_BD_MONO "0" 191#define DEF_ENTRY_INSERT_OFF_TIME "300" 192#define DEF_ENTRY_INSERT_ON_TIME "600" 193/* #define DEF_ENTRY_INSERT_WIDTH "2" */ 194#define DEF_ENTRY_INSERT_WIDTH "1" 195#define DEF_ENTRY_JUSTIFY "left" 196#define DEF_ENTRY_READONLY_BG_COLOR NORMAL_BG 197#define DEF_ENTRY_READONLY_BG_MONO WHITE 198#define DEF_ENTRY_RELIEF "sunken" 199/* #define DEF_ENTRY_RELIEF "solid" */ 200#define DEF_ENTRY_SCROLL_COMMAND "" 201#define DEF_ENTRY_SELECT_COLOR SELECT_BG 202#define DEF_ENTRY_SELECT_MONO BLACK 203#define DEF_ENTRY_SELECT_BD_COLOR "1" 204#define DEF_ENTRY_SELECT_BD_MONO "0" 205#define DEF_ENTRY_SELECT_FG_COLOR SELECT_FG 206#define DEF_ENTRY_SELECT_FG_MONO WHITE 207#define DEF_ENTRY_SHOW ((char *) NULL) 208#define DEF_ENTRY_STATE "normal" 209#define DEF_ENTRY_TAKE_FOCUS ((char *) NULL) 210#define DEF_ENTRY_TEXT_VARIABLE "" 211#define DEF_ENTRY_WIDTH "20" 212 213/* 214 * Defaults for frames: 215 */ 216 217#define DEF_FRAME_BG_COLOR NORMAL_BG 218#define DEF_FRAME_BG_MONO WHITE 219#define DEF_FRAME_BORDER_WIDTH "0" 220#define DEF_FRAME_CLASS "Frame" 221#define DEF_FRAME_COLORMAP "" 222#define DEF_FRAME_CONTAINER "0" 223#define DEF_FRAME_CURSOR "" 224#define DEF_FRAME_HEIGHT "0" 225#define DEF_FRAME_HIGHLIGHT_BG NORMAL_BG 226#define DEF_FRAME_HIGHLIGHT BLACK 227#define DEF_FRAME_HIGHLIGHT_WIDTH "0" 228#define DEF_FRAME_PADX "0" 229#define DEF_FRAME_PADY "0" 230#define DEF_FRAME_RELIEF "flat" 231#define DEF_FRAME_TAKE_FOCUS "0" 232#define DEF_FRAME_VISUAL "" 233#define DEF_FRAME_WIDTH "0" 234 235/* 236 * Defaults for labelframes: 237 */ 238 239#define DEF_LABELFRAME_BORDER_WIDTH "2" 240#define DEF_LABELFRAME_CLASS "Labelframe" 241#define DEF_LABELFRAME_RELIEF "groove" 242#define DEF_LABELFRAME_FG "systemButtonText" 243#define DEF_LABELFRAME_FONT "TkDefaultFont" 244#define DEF_LABELFRAME_TEXT "" 245#define DEF_LABELFRAME_LABELANCHOR "nw" 246 247/* 248 * Defaults for listboxes: 249 */ 250 251#define DEF_LISTBOX_ACTIVE_STYLE "dotbox" 252#define DEF_LISTBOX_BG_COLOR WHITE 253#define DEF_LISTBOX_BG_MONO WHITE 254#define DEF_LISTBOX_BORDER_WIDTH "1" 255#define DEF_LISTBOX_CURSOR "" 256#define DEF_LISTBOX_DISABLED_FG DISABLED 257#define DEF_LISTBOX_EXPORT_SELECTION "1" 258#define DEF_LISTBOX_FONT "TkTextFont" 259#define DEF_LISTBOX_FG BLACK 260#define DEF_LISTBOX_HEIGHT "10" 261#define DEF_LISTBOX_HIGHLIGHT_BG NORMAL_BG 262#define DEF_LISTBOX_HIGHLIGHT BLACK 263#define DEF_LISTBOX_HIGHLIGHT_WIDTH "0" 264#define DEF_LISTBOX_RELIEF "solid" 265#define DEF_LISTBOX_SCROLL_COMMAND "" 266#define DEF_LISTBOX_LIST_VARIABLE "" 267#define DEF_LISTBOX_SELECT_COLOR SELECT_BG 268#define DEF_LISTBOX_SELECT_MONO BLACK 269#define DEF_LISTBOX_SELECT_BD "0" 270#define DEF_LISTBOX_SELECT_FG_COLOR SELECT_FG 271#define DEF_LISTBOX_SELECT_FG_MONO WHITE 272#define DEF_LISTBOX_SELECT_MODE "browse" 273#define DEF_LISTBOX_SET_GRID "0" 274#define DEF_LISTBOX_STATE "normal" 275#define DEF_LISTBOX_TAKE_FOCUS ((char *) NULL) 276#define DEF_LISTBOX_WIDTH "20" 277 278/* 279 * Defaults for individual entries of menus: 280 */ 281 282#define DEF_MENU_ENTRY_ACTIVE_BG ((char *) NULL) 283#define DEF_MENU_ENTRY_ACTIVE_FG ((char *) NULL) 284#define DEF_MENU_ENTRY_ACCELERATOR ((char *) NULL) 285#define DEF_MENU_ENTRY_BG ((char *) NULL) 286#define DEF_MENU_ENTRY_BITMAP None 287#define DEF_MENU_ENTRY_COLUMN_BREAK "0" 288#define DEF_MENU_ENTRY_COMMAND ((char *) NULL) 289#define DEF_MENU_ENTRY_COMPOUND "none" 290#define DEF_MENU_ENTRY_FG ((char *) NULL) 291#define DEF_MENU_ENTRY_FONT ((char *) NULL) 292#define DEF_MENU_ENTRY_HIDE_MARGIN "0" 293#define DEF_MENU_ENTRY_IMAGE ((char *) NULL) 294#define DEF_MENU_ENTRY_INDICATOR "1" 295#define DEF_MENU_ENTRY_LABEL ((char *) NULL) 296#define DEF_MENU_ENTRY_MENU ((char *) NULL) 297#define DEF_MENU_ENTRY_OFF_VALUE "0" 298#define DEF_MENU_ENTRY_ON_VALUE "1" 299#define DEF_MENU_ENTRY_SELECT_IMAGE ((char *) NULL) 300#define DEF_MENU_ENTRY_STATE "normal" 301#define DEF_MENU_ENTRY_VALUE ((char *) NULL) 302#define DEF_MENU_ENTRY_CHECK_VARIABLE ((char *) NULL) 303#define DEF_MENU_ENTRY_RADIO_VARIABLE "selectedButton" 304#define DEF_MENU_ENTRY_SELECT ((char *) NULL) 305#define DEF_MENU_ENTRY_UNDERLINE "-1" 306 307/* 308 * Defaults for menus overall: 309 */ 310 311#define DEF_MENU_ACTIVE_BG_COLOR "systemMenuActive" 312#define DEF_MENU_ACTIVE_BG_MONO BLACK 313#define DEF_MENU_ACTIVE_BORDER_WIDTH "0" 314#define DEF_MENU_ACTIVE_FG_COLOR "systemMenuActiveText" 315#define DEF_MENU_ACTIVE_FG_MONO WHITE 316#define DEF_MENU_BG_COLOR "systemMenu" 317#define DEF_MENU_BG_MONO WHITE 318#define DEF_MENU_BORDER_WIDTH "0" 319#define DEF_MENU_CURSOR "arrow" 320#define DEF_MENU_DISABLED_FG_COLOR "systemMenuDisabled" 321#define DEF_MENU_DISABLED_FG_MONO "" 322#define DEF_MENU_FONT "menu" /* special: see tkMacOSXMenu.c */ 323#define DEF_MENU_FG "systemMenuText" 324#define DEF_MENU_POST_COMMAND "" 325#define DEF_MENU_RELIEF "flat" 326#define DEF_MENU_SELECT_COLOR "systemMenuActive" 327#define DEF_MENU_SELECT_MONO BLACK 328#define DEF_MENU_TAKE_FOCUS "0" 329 330/* 331 * FIXME: Turn the default back to 1 when we make tearoff menus work again. 332 */ 333 334#define DEF_MENU_TEAROFF "0" 335#define DEF_MENU_TEAROFF_CMD ((char *) NULL) 336#define DEF_MENU_TITLE "" 337#define DEF_MENU_TYPE "normal" 338 339/* 340 * Defaults for menubuttons: 341 */ 342 343#define DEF_MENUBUTTON_ANCHOR "center" 344#define DEF_MENUBUTTON_ACTIVE_BG_COLOR ACTIVE_BG 345#define DEF_MENUBUTTON_ACTIVE_BG_MONO BLACK 346#define DEF_MENUBUTTON_ACTIVE_FG_COLOR ACTIVE_FG 347#define DEF_MENUBUTTON_ACTIVE_FG_MONO WHITE 348#define DEF_MENUBUTTON_BG_COLOR NORMAL_BG 349#define DEF_MENUBUTTON_BG_MONO WHITE 350#define DEF_MENUBUTTON_BITMAP "" 351#define DEF_MENUBUTTON_BORDER_WIDTH "2" 352#define DEF_MENUBUTTON_CURSOR "" 353#define DEF_MENUBUTTON_DIRECTION "below" 354#define DEF_MENUBUTTON_DISABLED_FG_COLOR DISABLED 355#define DEF_MENUBUTTON_DISABLED_FG_MONO "" 356#define DEF_MENUBUTTON_FONT "TkDefaultFont" 357#define DEF_MENUBUTTON_FG BLACK 358#define DEF_MENUBUTTON_HEIGHT "0" 359#define DEF_MENUBUTTON_HIGHLIGHT_BG_COLOR DEF_MENUBUTTON_BG_COLOR 360#define DEF_MENUBUTTON_HIGHLIGHT_BG_MONO DEF_MENUBUTTON_BG_MONO 361#define DEF_MENUBUTTON_HIGHLIGHT BLACK 362#define DEF_MENUBUTTON_HIGHLIGHT_WIDTH "0" 363#define DEF_MENUBUTTON_IMAGE ((char *) NULL) 364#define DEF_MENUBUTTON_INDICATOR "1" 365#define DEF_MENUBUTTON_JUSTIFY "left" 366#define DEF_MENUBUTTON_MENU "" 367#define DEF_MENUBUTTON_PADX "4" 368#define DEF_MENUBUTTON_PADY "3" 369#define DEF_MENUBUTTON_RELIEF "flat" 370#define DEF_MENUBUTTON_STATE "normal" 371#define DEF_MENUBUTTON_TAKE_FOCUS "0" 372#define DEF_MENUBUTTON_TEXT "" 373#define DEF_MENUBUTTON_TEXT_VARIABLE "" 374#define DEF_MENUBUTTON_UNDERLINE "-1" 375#define DEF_MENUBUTTON_WIDTH "0" 376#define DEF_MENUBUTTON_WRAP_LENGTH "0" 377 378/* 379 * Defaults for messages: 380 */ 381 382#define DEF_MESSAGE_ANCHOR "center" 383#define DEF_MESSAGE_ASPECT "150" 384#define DEF_MESSAGE_BG_COLOR NORMAL_BG 385#define DEF_MESSAGE_BG_MONO WHITE 386#define DEF_MESSAGE_BORDER_WIDTH "1" 387#define DEF_MESSAGE_CURSOR "" 388#define DEF_MESSAGE_FG BLACK 389#define DEF_MESSAGE_FONT "TkDefaultFont" 390#define DEF_MESSAGE_HIGHLIGHT_BG NORMAL_BG 391#define DEF_MESSAGE_HIGHLIGHT BLACK 392#define DEF_MESSAGE_HIGHLIGHT_WIDTH "0" 393#define DEF_MESSAGE_JUSTIFY "left" 394#define DEF_MESSAGE_PADX "-1" 395#define DEF_MESSAGE_PADY "-1" 396#define DEF_MESSAGE_RELIEF "flat" 397#define DEF_MESSAGE_TAKE_FOCUS "0" 398#define DEF_MESSAGE_TEXT "" 399#define DEF_MESSAGE_TEXT_VARIABLE "" 400#define DEF_MESSAGE_WIDTH "0" 401/* 402 * Defaults for panedwindows 403 */ 404 405#define DEF_PANEDWINDOW_BG_COLOR NORMAL_BG 406#define DEF_PANEDWINDOW_BG_MONO WHITE 407#define DEF_PANEDWINDOW_BORDERWIDTH "1" 408#define DEF_PANEDWINDOW_CURSOR "" 409#define DEF_PANEDWINDOW_HANDLEPAD "8" 410#define DEF_PANEDWINDOW_HANDLESIZE "8" 411#define DEF_PANEDWINDOW_HEIGHT "" 412#define DEF_PANEDWINDOW_OPAQUERESIZE "1" 413#define DEF_PANEDWINDOW_ORIENT "horizontal" 414#define DEF_PANEDWINDOW_RELIEF "flat" 415#define DEF_PANEDWINDOW_SASHCURSOR "" 416#define DEF_PANEDWINDOW_SASHPAD "0" 417#define DEF_PANEDWINDOW_SASHRELIEF "flat" 418#define DEF_PANEDWINDOW_SASHWIDTH "3" 419#define DEF_PANEDWINDOW_SHOWHANDLE "0" 420#define DEF_PANEDWINDOW_WIDTH "" 421 422/* 423 * Defaults for panedwindow panes 424 */ 425 426#define DEF_PANEDWINDOW_PANE_AFTER "" 427#define DEF_PANEDWINDOW_PANE_BEFORE "" 428#define DEF_PANEDWINDOW_PANE_HEIGHT "" 429#define DEF_PANEDWINDOW_PANE_MINSIZE "0" 430#define DEF_PANEDWINDOW_PANE_PADX "0" 431#define DEF_PANEDWINDOW_PANE_PADY "0" 432#define DEF_PANEDWINDOW_PANE_STICKY "nsew" 433#define DEF_PANEDWINDOW_PANE_WIDTH "" 434#define DEF_PANEDWINDOW_PANE_HIDE "0" 435#define DEF_PANEDWINDOW_PANE_STRETCH "last" 436 437/* 438 * Defaults for scales: 439 */ 440 441#define DEF_SCALE_ACTIVE_BG_COLOR ACTIVE_BG 442#define DEF_SCALE_ACTIVE_BG_MONO BLACK 443#define DEF_SCALE_BG_COLOR NORMAL_BG 444#define DEF_SCALE_BG_MONO WHITE 445#define DEF_SCALE_BIG_INCREMENT "0" 446#define DEF_SCALE_BORDER_WIDTH "1" 447#define DEF_SCALE_COMMAND "" 448#define DEF_SCALE_CURSOR "" 449#define DEF_SCALE_DIGITS "0" 450#define DEF_SCALE_FONT "TkDefaultFont" 451#define DEF_SCALE_FG_COLOR BLACK 452#define DEF_SCALE_FG_MONO BLACK 453#define DEF_SCALE_FROM "0" 454#define DEF_SCALE_HIGHLIGHT_BG_COLOR DEF_SCALE_BG_COLOR 455#define DEF_SCALE_HIGHLIGHT_BG_MONO DEF_SCALE_BG_MONO 456#define DEF_SCALE_HIGHLIGHT BLACK 457#define DEF_SCALE_HIGHLIGHT_WIDTH "0" 458#define DEF_SCALE_LABEL "" 459#define DEF_SCALE_LENGTH "100" 460#define DEF_SCALE_ORIENT "vertical" 461#define DEF_SCALE_RELIEF "flat" 462#define DEF_SCALE_REPEAT_DELAY "300" 463#define DEF_SCALE_REPEAT_INTERVAL "100" 464#define DEF_SCALE_RESOLUTION "1" 465#define DEF_SCALE_TROUGH_COLOR TROUGH 466#define DEF_SCALE_TROUGH_MONO WHITE 467#define DEF_SCALE_SHOW_VALUE "1" 468#define DEF_SCALE_SLIDER_LENGTH "30" 469#define DEF_SCALE_SLIDER_RELIEF "raised" 470#define DEF_SCALE_STATE "normal" 471#define DEF_SCALE_TAKE_FOCUS ((char *) NULL) 472#define DEF_SCALE_TICK_INTERVAL "0" 473#define DEF_SCALE_TO "100" 474#define DEF_SCALE_VARIABLE "" 475#define DEF_SCALE_WIDTH "15" 476 477/* 478 * Defaults for scrollbars: 479 */ 480 481#define DEF_SCROLLBAR_ACTIVE_BG_COLOR ACTIVE_BG 482#define DEF_SCROLLBAR_ACTIVE_BG_MONO BLACK 483#define DEF_SCROLLBAR_ACTIVE_RELIEF "raised" 484#define DEF_SCROLLBAR_BG_COLOR NORMAL_BG 485#define DEF_SCROLLBAR_BG_MONO WHITE 486#define DEF_SCROLLBAR_BORDER_WIDTH "0" 487#define DEF_SCROLLBAR_COMMAND "" 488#define DEF_SCROLLBAR_CURSOR "" 489#define DEF_SCROLLBAR_EL_BORDER_WIDTH "-1" 490#define DEF_SCROLLBAR_HIGHLIGHT_BG NORMAL_BG 491#define DEF_SCROLLBAR_HIGHLIGHT BLACK 492#define DEF_SCROLLBAR_HIGHLIGHT_WIDTH "0" 493#define DEF_SCROLLBAR_JUMP "0" 494#define DEF_SCROLLBAR_ORIENT "vertical" 495#define DEF_SCROLLBAR_RELIEF "flat" 496#define DEF_SCROLLBAR_REPEAT_DELAY "300" 497#define DEF_SCROLLBAR_REPEAT_INTERVAL "100" 498#define DEF_SCROLLBAR_TAKE_FOCUS ((char *) NULL) 499#define DEF_SCROLLBAR_TROUGH_COLOR TROUGH 500#define DEF_SCROLLBAR_TROUGH_MONO WHITE 501#define DEF_SCROLLBAR_WIDTH "15" 502 503/* 504 * Defaults for texts: 505 */ 506 507#define DEF_TEXT_AUTO_SEPARATORS "1" 508#define DEF_TEXT_BG_COLOR NORMAL_BG 509#define DEF_TEXT_BG_MONO WHITE 510#define DEF_TEXT_BLOCK_CURSOR "0" 511#define DEF_TEXT_BORDER_WIDTH "0" 512#define DEF_TEXT_CURSOR "xterm" 513#define DEF_TEXT_FG BLACK 514#define DEF_TEXT_EXPORT_SELECTION "1" 515#define DEF_TEXT_FONT "TkFixedFont" 516#define DEF_TEXT_HEIGHT "24" 517#define DEF_TEXT_HIGHLIGHT_BG NORMAL_BG 518#define DEF_TEXT_HIGHLIGHT BLACK 519#define DEF_TEXT_HIGHLIGHT_WIDTH "3" 520#define DEF_TEXT_INSERT_BG BLACK 521#define DEF_TEXT_INSERT_BD_COLOR "0" 522#define DEF_TEXT_INSERT_BD_MONO "0" 523#define DEF_TEXT_INSERT_OFF_TIME "300" 524#define DEF_TEXT_INSERT_ON_TIME "600" 525#define DEF_TEXT_INSERT_WIDTH "1" 526#define DEF_TEXT_MAX_UNDO "0" 527#define DEF_TEXT_PADX "1" 528#define DEF_TEXT_PADY "1" 529#define DEF_TEXT_RELIEF "flat" 530#define DEF_TEXT_INACTIVE_SELECT_COLOR INACTIVE_SELECT_BG 531#define DEF_TEXT_SELECT_COLOR SELECT_BG 532#define DEF_TEXT_SELECT_MONO BLACK 533#define DEF_TEXT_SELECT_BD_COLOR "1" 534#define DEF_TEXT_SELECT_BD_MONO "0" 535#define DEF_TEXT_SELECT_FG_COLOR SELECT_FG 536#define DEF_TEXT_SELECT_FG_MONO WHITE 537#define DEF_TEXT_SELECT_RELIEF "flat" 538#define DEF_TEXT_SET_GRID "0" 539#define DEF_TEXT_SPACING1 "0" 540#define DEF_TEXT_SPACING2 "0" 541#define DEF_TEXT_SPACING3 "0" 542#define DEF_TEXT_STATE "normal" 543#define DEF_TEXT_TABS "" 544#define DEF_TEXT_TABSTYLE "tabular" 545#define DEF_TEXT_TAKE_FOCUS ((char *) NULL) 546#define DEF_TEXT_UNDO "0" 547#define DEF_TEXT_WIDTH "80" 548#define DEF_TEXT_WRAP "char" 549#define DEF_TEXT_XSCROLL_COMMAND "" 550#define DEF_TEXT_YSCROLL_COMMAND "" 551 552/* 553 * Defaults for canvas text: 554 */ 555 556#define DEF_CANVTEXT_FONT "TkDefaultFont" 557 558/* 559 * Defaults for toplevels (most of the defaults for frames also apply 560 * to toplevels): 561 */ 562 563#define DEF_TOPLEVEL_CLASS "Toplevel" 564#define DEF_TOPLEVEL_MENU "" 565#define DEF_TOPLEVEL_SCREEN "" 566#define DEF_TOPLEVEL_USE "" 567 568#endif /* _TKMACDEFAULT */ 569