Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /trunk/teraterm/teraterm/theme.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10214 - (hide annotations) (download) (as text)
Mon Aug 29 15:15:56 2022 UTC (19 months, 1 week ago) by zmatsuo
Original Path: trunk/teraterm/teraterm/bg_theme.h
File MIME type: text/x-chdr
File size: 3067 byte(s)
下線属性の文字表示の設定を追加

- 下線属性の設定を追加、設定に従って下線属性を表示するよう修正
- INIに項目追加
  - UnderlineAttrFont
    - font on/off
    - default on
  - UnderlineAttrColor
    - color on/off
    - default on
  - VTUnderlineColor
    - color(R,G,B,R,G,B)
    - デフォルト色は仮です
- その他設定-表示タブに項目追加
  - 下線属性に下線を付加する
  - 下線属性色を有効にする
  - 太文字を文字を有効
    - 設定-ウィンドウの設定にあるものと同じ
- theme editorで設定できるようにした

ticket #45372
1 zmatsuo 10134 /*
2     * Copyright (C) 1994-1998 T. Teranishi
3     * (C) 2022- TeraTerm Project
4     * All rights reserved.
5     *
6     * Redistribution and use in source and binary forms, with or without
7     * modification, are permitted provided that the following conditions
8     * are met:
9     *
10     * 1. Redistributions of source code must retain the above copyright
11     * notice, this list of conditions and the following disclaimer.
12     * 2. Redistributions in binary form must reproduce the above copyright
13     * notice, this list of conditions and the following disclaimer in the
14     * documentation and/or other materials provided with the distribution.
15     * 3. The name of the author may not be used to endorse or promote products
16     * derived from this software without specific prior written permission.
17     *
18     * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
19     * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20     * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21     * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
22     * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23     * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24     * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25     * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26     * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27     * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28     */
29    
30     #pragma once
31    
32     #include <windows.h>
33    
34     typedef enum _BG_TYPE { BG_COLOR = 0, BG_PICTURE, BG_WALLPAPER, BG_NONE } BG_TYPE;
35     typedef enum _BG_PATTERN {
36     BG_STRETCH = 0,
37     BG_TILE,
38     BG_CENTER,
39     BG_FIT_WIDTH,
40     BG_FIT_HEIGHT,
41     BG_AUTOFIT,
42     BG_AUTOFILL
43     } BG_PATTERN;
44    
45     typedef struct {
46     BG_TYPE type;
47     BG_PATTERN pattern;
48     BOOL antiAlias;
49     COLORREF color;
50     int alpha;
51     char file[MAX_PATH];
52     } TBGSrc;
53    
54     typedef struct _BGTheme {
55     TBGSrc BGDest;
56     TBGSrc BGSrc1;
57     TBGSrc BGSrc2;
58     int BGReverseTextAlpha;
59     } BGTheme;
60    
61     ////////////////////
62     // color theme
63     ////////////////////
64    
65     typedef struct {
66     BOOL change;
67     BOOL enable;
68     COLORREF fg;
69     COLORREF bg;
70     } TColorSetting;
71    
72     typedef struct {
73     BOOL change;
74     BOOL enable;
75     COLORREF color[16];
76     } TAnsiColorSetting;
77    
78     typedef struct {
79     char name[50];
80     TColorSetting vt;
81 zmatsuo 10214 TColorSetting bold; // SGR 1
82     TColorSetting underline; // SGR 4
83     TColorSetting blink; // SGR 5
84     TColorSetting reverse; // SGR 7
85 zmatsuo 10134 TColorSetting url;
86     TAnsiColorSetting ansicolor;
87     } TColorTheme;
88    
89     #ifdef __cplusplus
90     extern "C" {
91     #endif
92     void BGLoad(const wchar_t *fname, BGTheme *bg_theme, TColorTheme *color_theme);
93     void BGSave(const BGTheme *bg_theme, const wchar_t *fname);
94     void BGSaveColor(TColorTheme *color_theme, const wchar_t *fname);
95     void BGSet(const BGTheme *bg_theme);
96     void BGGet(BGTheme *bg_theme);
97     void GetColorData(TColorTheme *data);
98     void BGSetColorData(const TColorTheme *data);
99     void BGGetColorDefault(TColorTheme *data);
100     #ifdef __cplusplus
101     }
102     #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26