antigravity-rtl-patcher 3.0.8 → 3.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antigravity-rtl-patcher",
3
- "version": "3.0.8",
3
+ "version": "3.0.10",
4
4
  "description": "Advanced RTL and Persian/Arabic typography patcher for Antigravity with customizable UI",
5
5
  "main": "src/patcher.js",
6
6
  "bin": {
@@ -47,40 +47,92 @@ win.webContents.on('dom-ready', () => {
47
47
  -webkit-font-smoothing: antialiased !important;
48
48
  }
49
49
 
50
- /* RTL ALL text content - but NOT layout */
51
- body.rtl-active p,
52
- body.rtl-active h1, body.rtl-active h2, body.rtl-active h3,
53
- body.rtl-active h4, body.rtl-active h5, body.rtl-active h6,
54
- body.rtl-active li, body.rtl-active span:not(.rtl-ui),
55
- body.rtl-active div:not(#rtl-panel):not(.rtl-ui):not([class*="button"]):not([class*="icon"]):not([class*="toolbar"]) > *:not(button):not(input):not(select) {
50
+ /* Keep sidebars, navigation, and main layout LTR */
51
+ body.rtl-active [class*="sidebar"],
52
+ body.rtl-active [class*="nav"],
53
+ body.rtl-active [class*="menu"],
54
+ body.rtl-active [class*="toolbar"],
55
+ body.rtl-active [class*="panel"],
56
+ body.rtl-active [class*="list"],
57
+ body.rtl-active aside,
58
+ body.rtl-active nav {
59
+ direction: ltr !important;
60
+ text-align: left !important;
61
+ }
62
+
63
+ /* RTL for message/chat content area */
64
+ body.rtl-active [class*="message"] p,
65
+ body.rtl-active [class*="message"] h1,
66
+ body.rtl-active [class*="message"] h2,
67
+ body.rtl-active [class*="message"] h3,
68
+ body.rtl-active [class*="message"] h4,
69
+ body.rtl-active [class*="message"] h5,
70
+ body.rtl-active [class*="message"] h6,
71
+ body.rtl-active [class*="message"] li,
72
+ body.rtl-active [class*="chat"] p,
73
+ body.rtl-active [class*="chat"] h1,
74
+ body.rtl-active [class*="chat"] h2,
75
+ body.rtl-active [class*="chat"] h3,
76
+ body.rtl-active [class*="chat"] h4,
77
+ body.rtl-active [class*="chat"] h5,
78
+ body.rtl-active [class*="chat"] h6,
79
+ body.rtl-active [class*="chat"] li,
80
+ body.rtl-active [class*="content"] p,
81
+ body.rtl-active [class*="content"] h1,
82
+ body.rtl-active [class*="content"] h2,
83
+ body.rtl-active [class*="content"] h3,
84
+ body.rtl-active [class*="content"] h4,
85
+ body.rtl-active [class*="content"] h5,
86
+ body.rtl-active [class*="content"] h6,
87
+ body.rtl-active [class*="content"] li,
88
+ body.rtl-active main p,
89
+ body.rtl-active main h1,
90
+ body.rtl-active main h2,
91
+ body.rtl-active main h3,
92
+ body.rtl-active main h4,
93
+ body.rtl-active main h5,
94
+ body.rtl-active main h6,
95
+ body.rtl-active main li {
56
96
  direction: rtl !important;
57
97
  text-align: right !important;
58
98
  }
59
99
 
60
- /* Lists */
61
- body.rtl-active ul,
62
- body.rtl-active ol {
63
- padding-left: 0 !important;
64
- padding-right: 2rem !important;
100
+ /* RTL for tables */
101
+ body.rtl-active table,
102
+ body.rtl-active td,
103
+ body.rtl-active th {
104
+ direction: rtl !important;
105
+ text-align: right !important;
65
106
  }
66
107
 
67
- /* Code blocks always LTR */
108
+ /* RTL for code blocks (bash, etc) */
68
109
  body.rtl-active pre,
69
110
  body.rtl-active code,
70
111
  body.rtl-active pre *,
71
112
  body.rtl-active code * {
72
- direction: ltr !important;
73
- text-align: left !important;
113
+ direction: rtl !important;
114
+ text-align: right !important;
74
115
  font-family: 'Courier New', Consolas, Monaco, monospace !important;
75
116
  }
76
117
 
118
+ /* Lists */
119
+ body.rtl-active [class*="message"] ul,
120
+ body.rtl-active [class*="message"] ol,
121
+ body.rtl-active [class*="chat"] ul,
122
+ body.rtl-active [class*="chat"] ol,
123
+ body.rtl-active [class*="content"] ul,
124
+ body.rtl-active [class*="content"] ol,
125
+ body.rtl-active main ul,
126
+ body.rtl-active main ol {
127
+ padding-left: 0 !important;
128
+ padding-right: 2rem !important;
129
+ }
130
+
77
131
  /* Keep UI elements LTR */
78
132
  body.rtl-active button,
79
133
  body.rtl-active input,
80
134
  body.rtl-active select,
81
- body.rtl-active [role="button"],
82
- body.rtl-active [class*="toolbar"],
83
- body.rtl-active [class*="menu"] {
135
+ body.rtl-active [role="button"] {
84
136
  direction: ltr !important;
85
137
  text-align: left !important;
86
138
  }