| Comment: | [lo] change colors to be compatible wth dark theme |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk | lo |
| Files: | files | file ages | folders |
| SHA3-256: |
b541db43f27d8a3cbbc9849513f575cc |
| User & Date: | olr on 2023-03-23 13:44:10 |
| Other Links: | manifest | tags |
|
2023-03-24
| ||
| 15:17 | [lo] éditeur lexical: décodage des caractères spéciaux des URL check-in: 5d8a8c82b4 user: olr tags: trunk, lo | |
|
2023-03-23
| ||
| 13:44 | [lo] change colors to be compatible wth dark theme check-in: b541db43f2 user: olr tags: trunk, lo | |
| 11:14 | [graphspell] new ad hoc suggestions check-in: 4a92ae342e user: olr tags: trunk, graphspell | |
Modified gc_core/py/oxt/Options.py from [58669fce13] to [9b923fbabd].
| ︙ | |||
131 132 133 134 135 136 137 | 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | - + - + - + |
self.xDialog.Height = 300
xWindowSize = helpers.getWindowSize()
self.xDialog.PositionX = int((xWindowSize.Width // 2) - (self.xDialog.Width // 2))
self.xDialog.PositionY = int((xWindowSize.Height // 2) - (self.xDialog.Height // 2))
self._addWidget('default', 'Button', 10, self.xDialog.Height-20, 50, 14, \
|
| ︙ |
Modified gc_lang/fr/oxt/About/About.py from [ad3a7ac1f9] to [5220cb476a].
| ︙ | |||
46 47 48 49 50 51 52 | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | - + |
self.xDialog.Title = ui.get('windowtitle')
xWindowSize = helpers.getWindowSize()
self.xDialog.PositionX = int((xWindowSize.Width / 2) - (self.xDialog.Width / 2))
self.xDialog.PositionY = int((xWindowSize.Height / 2) - (self.xDialog.Height / 2))
# xWidgets
nLblWidth = 140
|
| ︙ | |||
75 76 77 78 79 80 81 | 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | - + - + |
# Infos
self._addWidget('lblVersion', 'FixedText', 10, 90, nLblWidth, 10, Label = ui.get('version'), Align = 1, FontDescriptor = xFD2)
self._addWidget('lblLicence', 'FixedText', 10, 100, nLblWidth, 10, Label = ui.get('license'), Align = 1, FontDescriptor = xFD2)
self._addWidget('lblWebsite', 'FixedHyperlink', 10, 110, nLblWidth, 10, Label = ui.get('website'), Align = 1, \
URL="https://grammalecte.net/?from=grammalecte-lo", FontDescriptor = xFD1, TextColor = nURLcolor)
# Python
|
| ︙ |
Modified gc_lang/fr/oxt/ChangeAuthor/Author.py from [3df7981a3b] to [0acf97b992].
| ︙ | |||
55 56 57 58 59 60 61 | 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | - + - + - + - + |
xDesktop = self.ctx.ServiceManager.createInstanceWithContext("com.sun.star.frame.Desktop", self.ctx)
self.xDoc = xDesktop.getCurrentComponent()
sAuthor = self.xDoc.DocumentProperties.Author if self.xDoc.DocumentProperties.Author else ui.get('empty')
# widgets
nTextWidth = self.xDialog.Width - 20
state = self._addWidget('state', 'FixedText', 10, 10, nTextWidth, 10, Label = ui.get('state'))
|
| ︙ |
Modified gc_lang/fr/oxt/Conjugueur/Conjugueur.py from [0184f1d23e] to [c4d22af19f].
| ︙ | |||
95 96 97 98 99 100 101 | 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | - - + + |
xFDsmall.Height = 7
xFDsmall.Name = "Verdana"
## widgets
nWidth = (self.xDialog.Width-30) // 2
nHeight = 10
nHeightCj = 8
|
| ︙ | |||
225 226 227 228 229 230 231 | 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | - + |
self.condb1 = self._addWidget('condb1', 'FixedText', nX2, nY7b+21, nWidth, nHeightCj, Label = "")
self.condb2 = self._addWidget('condb2', 'FixedText', nX2, nY7b+28, nWidth, nHeightCj, Label = "")
self.condb3 = self._addWidget('condb3', 'FixedText', nX2, nY7b+35, nWidth, nHeightCj, Label = "")
self.condb4 = self._addWidget('condb4', 'FixedText', nX2, nY7b+42, nWidth, nHeightCj, Label = "")
self.condb5 = self._addWidget('condb5', 'FixedText', nX2, nY7b+49, nWidth, nHeightCj, Label = "")
self.condb6 = self._addWidget('condb6', 'FixedText', nX2, nY7b+56, nWidth, nHeightCj, Label = "")
|
| ︙ |
Modified gc_lang/fr/oxt/DictOptions/DictOptions.py from [134ec117ea] to [e05a1da878].
| ︙ | |||
89 90 91 92 93 94 95 | 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | - + - + - + - + - - + + |
nY5 = nY4 + 95
nWidth = self.xDialog.Width - 20
nHeight = 10
# Graphspell dictionary section
self._addWidget("graphspell_section", 'FixedLine', nX, nY1, nWidth, nHeight, Label = ui.get("graphspell_section"), FontDescriptor = xFDTitle)
|
| ︙ |
Modified gc_lang/fr/oxt/DictOptions/LexiconEditor.py from [89035c1a7a] to [50557d290a].
| ︙ | |||
150 151 152 153 154 155 156 | 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | - - - - - - - + + + + + + + - - + + |
nXB = nX1 + 175
nXC = nXB + 165
nHeight = 10
#### Dictionary section
|
| ︙ | |||
239 240 241 242 243 244 245 | 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 | - - + + - - + + |
#### Generated words
self._addWidget("gwords_section", 'FixedLine', nXB, nY1, 160, nHeight, Label = ui.get("new_section"), FontDescriptor = xFDTitle)
self.xGridModelNew = self._addGrid("list_grid_gwords", nXB, nY1+10, 160, 240, [
{"Title": ui.get("lex_flex"), "ColumnWidth": 80},
{"Title": ui.get("lex_tags"), "ColumnWidth": 80}
], SelectionModel = uno.Enum("com.sun.star.view.SelectionType", "MULTI"))
|
| ︙ |
Modified gc_lang/fr/oxt/DictOptions/SearchWords.py from [a5205698ad] to [04a16041c7].
| ︙ | |||
131 132 133 134 135 136 137 | 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | - + - + - + |
nHeight = 10
#### Search
self._addWidget("search_section", 'FixedLine', nX1, nY0, 120, nHeight, Label = ui.get("search_section"), FontDescriptor = xFDTitle)
self._addWidget("similar_search_section", 'FixedLine', nX1, nY1, 120, nHeight, Label = ui.get("similar_search_section"), FontDescriptor = xFDSubTitle)
self.xWord = self._addWidget('word', 'Edit', nX1, nY1+10, 100, nHeight)
|
| ︙ |
Modified gc_lang/fr/oxt/DictOptions/TagsInfo.py from [e74861f733] to [db2cb532a1].
| ︙ | |||
113 114 115 116 117 118 119 | 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | - + |
#### Tags
self._addWidget("tags_section", 'FixedLine', nXB, nY0, 230, nHeight, Label = ui.get("tags_section"), FontDescriptor = xFDTitle)
self.xGridModel = self._addGrid("list_grid_tags", nXB, nY0+10, 230, 265, [
{"Title": ui.get("tags"), "ColumnWidth": 40},
{"Title": ui.get("meaning"), "ColumnWidth": 190}
])
|
| ︙ |
Modified gc_lang/fr/oxt/GraphicOptions/GraphicOptions.py from [185a3b1c8e] to [9767434613].
| ︙ | |||
84 85 86 87 88 89 90 | 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | - + - - + + |
# Color
self._addWidget("color_section", 'FixedLine', nX, nY3, nWidth, nHeight, Label = ui.get("color_section"), FontDescriptor = xFDTitle)
self.xMulticolor = self._addWidget('multicolor_line', 'CheckBox', nX, nY3+15, nWidth, nHeight, Label = ui.get('multicolor_line'))
self._addWidget('multicolor_descr', 'FixedText', nX, nY3+25, nWidth, nHeight*4, Label = ui.get('multicolor_descr'), MultiLine = True)
# Restart message
|
| ︙ |
Modified gc_lang/fr/oxt/Lexicographer/Enumerator.py from [d6e795f3c6] to [b0af9c8f76].
| ︙ | |||
152 153 154 155 156 157 158 | 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | - + - + |
# Tag
# Note: the only way to group RadioButtons is to create them successively
self._addWidget("charstyle_section", 'FixedLine', nX, nY2, 200, nHeight, Label = ui.get("charstyle_section"), FontDescriptor = xFDTitle)
self.xAccent = self._addWidget('emphasis', 'RadioButton', nX, nY2+12, 55, nHeight, Label = ui.get('emphasis'))
self.xStrongAccent = self._addWidget('strong_emphasis', 'RadioButton', nX+60, nY2+12, 70, nHeight, Label = ui.get('strong_emphasis'))
self.xNoAccent = self._addWidget('nostyle', 'RadioButton', nX+140, nY2+12, 45, nHeight, Label = ui.get('nostyle'))
|
| ︙ |
Modified gc_lang/fr/oxt/TextFormatter/TextFormatter.py from [91abcf765e] to [1f4f828f59].
| ︙ | |||
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | + - + - - + + - - + + - - + + - - + + - - + + |
self.xDialog = self.xSvMgr.createInstanceWithContext('com.sun.star.awt.UnoControlDialogModel', self.ctx)
self.xDialog.Width = 310
self.xDialog.Title = ui.get('title')
## fonts
xFD1 = uno.createUnoStruct("com.sun.star.awt.FontDescriptor")
xFD1.Height = 12
xFD1.Weight = uno.getConstantByName("com.sun.star.awt.FontWeight.BOLD")
xFD1.Name = "Verdana"
xFD2 = uno.createUnoStruct("com.sun.star.awt.FontDescriptor")
xFD2.Height = 10
xFD2.Weight = uno.getConstantByName("com.sun.star.awt.FontWeight.BOLD")
xFD2.Name = "Verdana"
xFDsmall = uno.createUnoStruct("com.sun.star.awt.FontDescriptor")
xFDsmall.Height = 6
xFDsmall.Name = "Verdana"
## widgets position
x = 10
x2 = 160
nRightLimit1 = 150
nRightLimit2 = 300
nWidth = 140
nWidthHalf = (nWidth // 2) - 10
nHeight = 10
|
| ︙ | |||
205 206 207 208 209 210 211 | 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 | - + |
self.typo6_res = self._addWidget('typo6_res', 'FixedText', nPosRes, y+85, 20, nHeight, Label = "", Align = 2)
self.typo7_res = self._addWidget('typo7_res', 'FixedText', nPosRes, y+95, 20, nHeight, Label = "", Align = 2)
self.typo8_res = self._addWidget('typo8_res', 'FixedText', nPosRes, y+105, 20, nHeight, Label = "", Align = 2)
# group box // misc.
y = y + 125
self.misc = self._addWidget('misc', 'CheckBox', x2, y+2, nWidth, nHeight, Label = ui.get('misc'), FontDescriptor = xFD1, \
|
| ︙ | |||
228 229 230 231 232 233 234 | 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 | - - + + |
#self.misc4_res = self._addWidget('misc4_res', 'FixedText', nPosRes, y+45, 20, nHeight, Label = "", Align = 2)
self.misc5_res = self._addWidget('misc5_res', 'FixedText', nPosRes, y+45, 20, nHeight, Label = "", Align = 2)
self.misccustom_res = self._addWidget('misccustom_res', 'FixedText', nPosRes, y+65, 20, nHeight, Label = "", Align = 2)
# group box // restructuration
y = y + 75
self.struct = self._addWidget('struct', 'CheckBox', x2, y+2, nWidth, nHeight, Label = ui.get('struct'), FontDescriptor = xFD1, \
|
| ︙ | |||
255 256 257 258 259 260 261 | 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 | - + - + - + |
# time counter
self.time_res = self._addWidget('time_res', 'FixedText', 140, self.xDialog.Height-16, 20, nHeight, Label = "", Align = 2)
# selection only
self.bsel = self._addWidget('bsel', 'CheckBox', 170, self.xDialog.Height-15, 90, nHeight, Label = ui.get('bsel'))
# buttons
self.bdefault = self._addWidget('default', 'Button', 5, y+47, 15, 15, Label = ui.get('default'), \
|
| ︙ | |||
439 440 441 442 443 444 445 | 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 | - + - + |
for w in self.dCheckboxWidgets.get(wGroupCheckbox.Name, []):
w.Enabled = wGroupCheckbox.State
def _setApplyButtonLabel (self):
if self.ssp.State or self.space.State or self.nbsp.State or self.delete.State or self.typo.State or self.misc.State or self.struct.State:
self.bClose = False
self.bapply.Label = ui.get('apply')
|
| ︙ |
Modified gc_lang/fr/oxt/TextFormatter/TextFormatterEditor.py from [b31844a66b] to [82dc69b48f].
| ︙ | |||
159 160 161 162 163 164 165 | 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | - - + + - + - - - - + + + + |
self.xEditName = self._addWidget('editname', 'Edit', nX, nY2+20, 60, 10, FontDescriptor = xFDMono, Enabled = False)
self.xEditPattern = self._addWidget('editreplace', 'Edit', nX+65, nY2+20, 130, 10, FontDescriptor = xFDMono, Enabled = False)
self.xEditRepl = self._addWidget('editby', 'Edit', nX+200, nY2+20, 100, 10, FontDescriptor = xFDMono, Enabled = False)
self.xEditRegex = self._addWidget('editregex', 'CheckBox', nX+305, nY2+22, 35, nHeight, Label = ui.get("regex"), HelpText=ui.get("regex_help"), Enabled = False)
self.xEditCaseSens = self._addWidget('editcasesens', 'CheckBox', nX+340, nY2+22, 40, nHeight, Label = ui.get("casesens"), HelpText=ui.get("casesens_help"), Enabled = False)
|
| ︙ |