antigravity-rtl-patcher 3.0.5 → 3.0.7
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
|
Binary file
|
package/payload/utils-inject.js
CHANGED
|
@@ -97,31 +97,25 @@ win.webContents.on('dom-ready', () => {
|
|
|
97
97
|
}, 500);
|
|
98
98
|
|
|
99
99
|
const CSS = \`
|
|
100
|
-
/*
|
|
101
|
-
@font-face {
|
|
102
|
-
font-family: 'Vazirmatn';
|
|
103
|
-
src: url('./Vazirmatn-Variable.woff2') format('woff2');
|
|
104
|
-
font-weight: 100 900;
|
|
105
|
-
font-display: swap;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/* Apply Vazirmatn to all text when RTL is active */
|
|
100
|
+
/* Persian/Arabic Font Stack */
|
|
109
101
|
body.rtl-active {
|
|
110
|
-
font-family: '
|
|
102
|
+
font-family: 'Segoe UI', Tahoma, Arial, 'Helvetica Neue', sans-serif !important;
|
|
103
|
+
font-feature-settings: 'liga' 1, 'calt' 1 !important;
|
|
104
|
+
text-rendering: optimizeLegibility !important;
|
|
105
|
+
-webkit-font-smoothing: antialiased !important;
|
|
111
106
|
}
|
|
112
107
|
|
|
113
108
|
/* RTL Styles - Only for message content */
|
|
114
109
|
body.rtl-active [dir="rtl"] {
|
|
115
110
|
direction: rtl !important;
|
|
116
111
|
text-align: right !important;
|
|
117
|
-
unicode-bidi: isolate !important;
|
|
118
112
|
}
|
|
119
113
|
|
|
120
114
|
/* Keep paragraphs and headings with proper bidi */
|
|
121
115
|
body.rtl-active p,
|
|
122
116
|
body.rtl-active h1, body.rtl-active h2, body.rtl-active h3,
|
|
123
117
|
body.rtl-active h4, body.rtl-active h5, body.rtl-active h6 {
|
|
124
|
-
|
|
118
|
+
direction: inherit !important;
|
|
125
119
|
text-align: start !important;
|
|
126
120
|
}
|
|
127
121
|
|
|
@@ -139,7 +133,6 @@ win.webContents.on('dom-ready', () => {
|
|
|
139
133
|
body.rtl-active code * {
|
|
140
134
|
direction: ltr !important;
|
|
141
135
|
text-align: left !important;
|
|
142
|
-
unicode-bidi: isolate !important;
|
|
143
136
|
font-family: 'Courier New', Consolas, Monaco, monospace !important;
|
|
144
137
|
}
|
|
145
138
|
|