bk config-gui(7.3ce) BitKeeper User's Manual bk config-gui(7.3ce) NAME bk config-gui - configuration for BitKeeper graphical tools DESCRIPTION BitKeeper uses a configuration file called config-gui for the configu- ration of the BitKeeper graphical tools. The configuration file is used to modify colors, fonts, and widget dimensions. The location of this configuration file can be determined for your platform by running the command bk dotbk. This command will return the pathname of the directory where the BitKeeper graphical tools will look for the config-gui file. The config file must be a valid tcl program as it is evaluated by the BitKeeper GUI tools (which are also tcl/tk programs). The point of being a program is that tcl code may be added to the config file in order to customize the gui based on arbitrary values such as machine name, screen size, etc. For example, if all screens of a certain size were known to be LCD screens (typically laptops), then the following technique could be used to get colors more appropriate for those screens: if {[winfo screenwidth .] <= 1024} { # These show up better on LCD displays. set gc(diffColor) gray set gc(activeDiffColor) lightseagreen set gc(fm3.handColor) yellow } The point of the config-gui file is to change configuration options. A typical line looks like this: set gc(diffColor) #f0f0f0 and the meanings for each part of that line are: set tcl syntax for assigning variables gc(diffColor) configuration option #f0f0f0 hexadecimal color value Each variable in the config file may take one of two forms, tool spe- cific or global. Tool specific variables, which apply only to the named tool, have the tool name as a prefix, i.e., set gc(cset.fixedFont) {fixed 12 roman} whereas global variables, which apply to all tools unless there is a tool specific version defined as well, look like set gc(fixedBoldFont) {fixed 12 roman bold} The tool names used to get to tool specific variables (or to have a change only apply to that tool) are the GUI tool's name with the trail- ing "tool" dropped, i.e., "diff" for "difftool". TCL INFORMATION The following tcl/tk commands may be useful for display specific cus- tomization: [winfo depth .] returns the color depth of the screen in bits, i.e., 16 means the screen can do 65536 different colors. [winfo screen .] Returns the name of the screen in the form dis- playName.screenIndex, i.e., "disks.bit- keeper.com:0.0". [winfo screenheight .] returns the height of the screen in pixels. [winfo screenwidth .] returns the width of the screen in pixels. GUI CONFIGURATION GLOBAL CONFIGURATION The following is a list of variables used by the various gui tools. Each of these needs to be in a statement like: set gc(<variable>) <value> but in the list below we just show the <variable> part. fixedFont Font used in all of the text widgets such as file lists, entry boxes, and text widgets showing contents of files. Defaults to values that match appropriate system defaults. fixedBoldFont Bold font used to highlight text such as difference within lines in bk difftool. Defaults to values that match appropriate system defaults. diffColor Color of the changed lines in a diff view. Default: #EDEDED activeDiffColor Color of the selected diff block in a diff view. Default: #2FEDAD oldColor Color of the older revision or diff. Overrides diffColor. Default: #B48CFF newColor Color of the newer revision or diff. Overrides diffColor. Default: #A8D8E0 activeOldColor Color of the older selected diff block in a diff view. Overrides activeDiffColor. Default: #2FEDAD activeNewColor Color of the newer selected diff block in a diff view. Overrides activeDiffColor. Default: #2FEDAD highlightOld Color of the subline highlighting for old lines in a diff. Default: #FFA500 highlightNew Color of the subline highlighting for new lines in a diff. Default: #FFA500 noticeColor Color for warnings and messages. Default: #DBDFE6 searchColor Highlight color for search matches. Used in bk difftool and bk revtool. Default: #FFA500 warnColor Color of the error messages. Used in bk citool. Default: #FFFF00 textBG Background color for text windows. Used in all of the tools. Default: #FFFFFF textFG Text color. Used in all of the tools. Default: #000000 tabwidth The width of a tab in average sized characters. Default: 8. quit Key used to exit from the gui tools. Default: <Control- q> CITOOL CONFIGURATION ci.commentsHeight height of the comments window. ci.diffHeight height of the diffs window (the lower window). ci.display_bytes Number of bytes to show in new files in bk citool. If set to 0, the entire file is displayed. Default: 8192 ci.editHeight Height of the popup editor. Default: 30 ci.editWidth Width of the popup editor. Default: 80 ci.excludeColor Color of the exclude icon (X character). Default: #FF0000 ci.filesHeight number of files in the top window. ci.rescan Set this to option to 1 if you would like bk citool to run again after doing the commit. Rescanning is useful if you do development in the manner where you modify many files that logically belong to separate changesets. This option then allows you to stay in bk citool and create different changesets for the files without restarting citool each time. Default: 0 CSETTOOL CONFIGURATION cset.annotation Annotation options to apply when getting files to be diffed. See the "-a" option to bk get. Example: "-aum". Default: "" (do not display annotations) cset.listHeight Number of lines in the list windows. Default: 12 DIFFTOOL CONFIGURATION diff.diffHeight Number of lines in the diff windows. Default: 50 diff.searchColor Highlight color for search matches. Default: #ADD8E6 FM3TOOL CONFIGURATION fm3.comments Boolean which controls the display of the com- ments window at the top. Default: 1 (on) fm3.firstDiff Keyboard accelerator for going to the first change. Default: "-" fm3.handColor Color used to highlight hand selected merge choices in the side by side local and remote diff windows. Default: #B4B6CB fm3.lastDiff Keyboard accelerator for going to the last change. Default: "+" fm3.mergeColor Color used to highlight merge choices, both man- ual and automatic, in the lower merge window. Default: #B4B6CB fm3.nextConflict Keyboard accelerator for going to the next con- flict (skips automerged changes). Default: "}" fm3.nextDiff Keyboard accelerator for going to the next change. Default: "]" fm3.prevConflict Keyboard accelerator for going to the previous conflict (skips automerged changes). Default: "{" fm3.prevDiff Keyboard accelerator for going to the previous change. Default: "[" fm3.sameColor Color used to highlight the portion of a con- flict consisting of unchanged lines. Default: #EFEFEF fm3.showEscapeButton When entering edit mode, if this variable is set to 1 a button will be displayed that you can click on to exit edit mode. Default: 1 fm3.spaceColor Color used to highlight the beginnings of lines which are "spacers" inserted to make the changes line up horizontally. Default: #000000 fm3.toggleAnnotations Keyboard accelerator for toggling the display of annotations. Default: "z" fm3.toggleGCA Keyboard accelerator for toggling the display of the GCA. Default: "x" fm3.undo Keyboard accelerator for undoing the last merge selection. Default: "u" HELPTOOL CONFIGURATION help.linkColor Color of the hyperlinks in bk helptool. Default: #0000FF help.scrollbars The location of the two scrollbars in helptool. The value should be two characters with each one being L or R. The first character indicates the position of the topic list scrollbars as Left or Right, while the second character specifies the position of the con- tent scrollbar. Default: RR help.topicsColor Highlight color for topic search matches. Default: #FFA500 help.height Number of rows to display in bk helptool. Default: 50 help.width Number of columns to display in bk helptool. Default: 72 help.exact Only return full word/phrase matches. Default: 0, set to 1 to enable RENAMETOOL CONFIGURATION rename.listHeight Height of the file list widget in bk renametool (in lines). Default: 8 REVTOOL CONFIGURATION rev.canvasBG Color of the graph background. Default: #9FB6B8 rev.commentBG Background color of the comment window in the anno- tated listing. Default: #ADDD8E6 rev.arrowColor Color of the arrows connecting the revision boxes. Default: #00008B rev.mergeOutline Color of the box surrounding the merge revisions. Default: #00008B rev.revOutline Color of the box surrounding the regular revisions. Default: #00008B rev.revColor Fill color of the unselected node. Default: #9FB6B8 rev.selectColor Highlight color for the selected annotated line. Default: #ADDD8E6 rev.commentHeight Height of the comment window above the annotated file listing. Default: 5 rev.textWidth Width of widget that displays the file content. Default: 92 rev.annotate Arguments to the annotate command. Default: "-Aur". rev.textHeight Height of widget that displays the file content. Default: 50 rev.showRevs The number of revs to show when running revtool against a single file. Default: 250 rev.showCsetRevs The number of revs to show when running revtool against a ChangeSet file. Default: 50 rev.tagOutline Color of the outline around nodes in the ChangeSet graph that have a tag associated with them. If this value is the empty string no outline will be drawn. Default: #FFFF00 rev.dateColor Color of the date text at the bottom of graph. Default: #181818 SEE ALSO Any Tcl/Tk documentation X(1) bk citool bk csettool bk difftool bk fmtool bk fm3tool bk helptool bk revtool bk renametool CATEGORY Overview Admin GUI-tools BitKeeper Inc 1E1 bk config-gui(7.3ce)