@@ -37,7 +37,7 @@ $itt = [Hashtable]::Synchronized(@{
3737ProcessRunning = $false
3838database = @ {}
3939api = $null
40- version = " 26.7.29 "
40+ version = " 26.8.6 "
4141registryPath = " HKCU:\Software\ITT@emadadel"
4242Theme = " default"
4343Date = (Get-Date - Format " MM/dd/yyy" )
@@ -1945,59 +1945,45 @@ ContentSource="Content"/>
19451945<Style TargetType="CheckBox">
19461946<Setter Property="Foreground" Value="{DynamicResource PrimaryTextColor}"/>
19471947<Setter Property="Margin" Value="0"/>
1948- <Setter Property="Padding" Value="0"/>
1949- <Setter Property="Background" Value="{x:Null}"/>
1950- <Setter Property="BorderThickness" Value="0"/>
1951- <Setter Property="BorderBrush" Value="DarkGray"/>
1948+ <Setter Property="Padding" Value="10"/>
1949+ <Setter Property="Background" Value="{DynamicResource SecondaryPrimaryBackgroundColor}"/>
1950+ <Setter Property="BorderBrush" Value="{DynamicResource BorderBrushColor}"/>
1951+ <Setter Property="BorderThickness" Value="1.2"/>
1952+ <Setter Property="Cursor" Value="Hand"/>
19521953<Setter Property="Template">
19531954<Setter.Value>
19541955<ControlTemplate TargetType="CheckBox">
1955- <Grid Margin="4">
1956- <Grid.ColumnDefinitions>
1957- <ColumnDefinition Width="Auto"/>
1958- <ColumnDefinition Width="*" />
1959- </Grid.ColumnDefinitions>
1960- <Border Width="20" Height="20"
1961- Grid.Column="0"
1956+ <Border x:Name="Root"
1957+ Background="{TemplateBinding Background}"
19621958BorderBrush="{TemplateBinding BorderBrush}"
1963- CornerRadius="5"
19641959BorderThickness="{TemplateBinding BorderThickness}"
1965- Background="{TemplateBinding Background}">
1966- <Grid>
1967- <TextBlock x:Name="CheckIcon" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14"/>
1968- <Path x:Name="CheckMark"
1969- Margin="4"
1970- FlowDirection="LeftToRight"
1971- Stretch="Uniform"
1972- Stroke="White"
1973- StrokeThickness="2"
1974- Data="M 0 5 L 4 8 L 10 0"
1975- Visibility="Collapsed"
1976- HorizontalAlignment="Center"
1977- VerticalAlignment="Center"/>
1978- </Grid>
1960+ CornerRadius="5"
1961+ Padding="{TemplateBinding Padding}">
1962+ <ContentPresenter
1963+ HorizontalAlignment="Stretch"
1964+ VerticalAlignment="Center"
1965+ Content="{TemplateBinding Content}"
1966+ ContentTemplate="{TemplateBinding ContentTemplate}"
1967+ RecognizesAccessKey="True"/>
19791968</Border>
1980- <ContentPresenter Grid.Column="1" Margin="8 0 0 0" VerticalAlignment="Center"/>
1981- </Grid>
19821969<ControlTemplate.Triggers>
19831970<Trigger Property="IsChecked" Value="True">
1984- <Setter TargetName="CheckMark" Property="Visibility" Value="Visible"/>
1985- <Setter Property="Background" Value="{DynamicResource ButtonHighlightColor}"/>
1986- <Setter TargetName="CheckIcon" Property="Visibility" Value="Hidden"/>
1971+ <Setter TargetName="Root"
1972+ Property="Background"
1973+ Value="{DynamicResource ButtonHighlightColor}"/>
1974+ <Setter Property="Foreground"
1975+ Value="White"/>
19871976</Trigger>
19881977<Trigger Property="IsMouseOver" Value="True">
1989- <Setter Property="Background" Value="{DynamicResource ButtonHighlightColor}"/>
1990- <Setter TargetName="CheckMark" Property="Visibility" Value="Visible"/>
1991- <Setter TargetName="CheckIcon" Property="Foreground" Value="{DynamicResource ButtonHighlightColor}"/>
1992- <Setter Property="Foreground" Value="{DynamicResource ButtonHighlightColor}"/>
1993- <Setter Property="Cursor" Value="Hand"/>
1978+ <Setter TargetName="Root"
1979+ Property="BorderBrush"
1980+ Value="{DynamicResource ButtonHighlightColor}"/>
1981+ </Trigger>
1982+ <Trigger Property="IsEnabled" Value="False">
1983+ <Setter TargetName="Root"
1984+ Property="Opacity"
1985+ Value="0.5"/>
19941986</Trigger>
1995- <DataTrigger Binding="{Binding SelectedItem.Tag, ElementName=taps}" Value="apps">
1996- <Setter TargetName="CheckIcon" Property="Text" Value="📦"/>
1997- </DataTrigger>
1998- <DataTrigger Binding="{Binding SelectedItem.Tag, ElementName=taps}" Value="tweaks">
1999- <Setter TargetName="CheckIcon" Property="Text" Value="🛠"/>
2000- </DataTrigger>
20011987</ControlTemplate.Triggers>
20021988</ControlTemplate>
20031989</Setter.Value>
@@ -2916,26 +2902,21 @@ HorizontalAlignment="Center"
29162902</ItemsControl.ItemsPanel>
29172903<ItemsControl.ItemTemplate>
29182904<DataTemplate>
2919- <Border Background="{DynamicResource SecondaryPrimaryBackgroundColor}"
2920- CornerRadius="5"
2921- Padding="10"
2922- Margin="5"
2923- BorderBrush="{DynamicResource BorderBrushColor}"
2924- BorderThickness="1.2">
2925- <Grid>
2926- <Grid.RowDefinitions>
2927- <RowDefinition Height="auto"/>
2928- </Grid.RowDefinitions>
2929- <CheckBox
2930- Grid.Row="0"
2931- Content="{Binding Content}"
2932- IsChecked="{Binding IsChecked}"
2905+ <CheckBox IsChecked="{Binding IsChecked}"
29332906ToolTip="{Binding Description}"
2907+ Margin="5">
2908+ <StackPanel Orientation="Horizontal">
2909+ <Image Name="AppIcon" Source="{Binding Icon}"
2910+ Visibility="{Binding IconVisibility}"
2911+ Width="30"
2912+ Height="30"
2913+ Margin="0,0,8,0"/>
2914+ <TextBlock Text="{Binding Content}"
2915+ VerticalAlignment="Center"
29342916FontSize="14"
2935- FontWeight="SemiBold"
2936- HorizontalContentAlignment="Stretch"/>
2937- </Grid>
2938- </Border>
2917+ FontWeight="SemiBold"/>
2918+ </StackPanel>
2919+ </CheckBox>
29392920</DataTemplate>
29402921</ItemsControl.ItemTemplate>
29412922</ItemsControl>
@@ -3020,22 +3001,29 @@ HorizontalAlignment="Center"
30203001</ItemsControl.ItemsPanel>
30213002<ItemsControl.ItemTemplate>
30223003<DataTemplate>
3023- <Border Background="{DynamicResource SecondaryPrimaryBackgroundColor }"
3004+ <Border Background="{DynamicResource PrimaryBackgroundColor }"
30243005CornerRadius="5"
3025- Padding="10 "
3026- Margin="5 "
3006+ Padding="5 "
3007+ Margin="0 "
30273008BorderBrush="{DynamicResource BorderBrushColor}"
3028- BorderThickness="1.2 ">
3009+ BorderThickness="0 ">
30293010<StackPanel>
30303011<CheckBox
3031- Grid.Row="0"
3032- Content="{Binding Content}"
30333012IsChecked="{Binding IsChecked}"
30343013ToolTip="{Binding Description}"
3014+ HorizontalContentAlignment="Stretch">
3015+ <StackPanel Orientation="Horizontal">
3016+ <TextBlock Text="{Binding Content}"
30353017FontSize="14"
3036- FontWeight="SemiBold"
3037- HorizontalContentAlignment="Stretch"/>
3038- <TextBlock Text="{Binding Requires}" Margin="5" FontSize="12" FontFamily="Segoe UI Emoji" Foreground="{DynamicResource SecondaryTextColor}"/>
3018+ FontWeight="SemiBold"/>
3019+ <TextBlock Text=" "
3020+ FontSize="14"
3021+ FontWeight="SemiBold"/>
3022+ <TextBlock Text="{Binding Requires}"
3023+ FontSize="14"
3024+ FontWeight="SemiBold"/>
3025+ </StackPanel>
3026+ </CheckBox>
30393027</StackPanel>
30403028</Border>
30413029</DataTemplate>
@@ -3290,24 +3278,40 @@ $appsUrl = "https://raw.githubusercontent.com/emadadeldev/ittea/refs/heads/main/
32903278$tweaksUrl = " https://raw.githubusercontent.com/emadadeldev/ittea/refs/heads/main/static/Database/Tweaks.json"
32913279while ($true ) {
32923280try {
3293- $aTask , $tTask = $c.GetStringAsync ($appsUrl ), $c.GetStringAsync ($tweaksUrl )
3294- [Threading.Tasks.Task ]::WaitAll($aTask , $tTask )
3295- $appsData = $aTask.Result | ConvertFrom-Json
3296- $tweaksData = $tTask.Result | ConvertFrom-Json
3297- if ($appsData -and $tweaksData ) {
3298- $itt.AppsListView.ItemsSource = $appsData
3281+ $appsTask = $c.GetStringAsync ($appsUrl )
3282+ $tweaksTask = $c.GetStringAsync ($tweaksUrl )
3283+ $appsJson = $appsTask.GetAwaiter ().GetResult()
3284+ $tweaksJson = $tweaksTask.GetAwaiter ().GetResult()
3285+ $appsData = $appsJson | ConvertFrom-Json
3286+ $tweaksData = $tweaksJson | ConvertFrom-Json
3287+ if ($appsData -and $tweaksData )
3288+ {
3289+ foreach ($app in $appsData )
3290+ {
3291+ if ($app.link )
3292+ {
3293+ $app | Add-Member - Force NoteProperty Icon (
3294+ " https://www.google.com/s2/favicons?sz=64&domain_url=$ ( [Uri ]::EscapeDataString($app.link )) "
3295+ )
3296+ $app | Add-Member - Force NoteProperty IconVisibility " Visible"
3297+ }
3298+ else
3299+ {
3300+ $app | Add-Member - Force NoteProperty Icon " "
3301+ $app | Add-Member - Force NoteProperty IconVisibility " Collapsed"
3302+ }
3303+ }
3304+ $itt.AppsListView.ItemsSource = $appsData
32993305$itt.TweaksListView.ItemsSource = $tweaksData
33003306$splash.Close ()
33013307break
33023308}
3303- else {
33043309Write-Host " Still loading data..." - ForegroundColor Yellow
33053310}
3306- }
33073311catch {
3308- Write-Host " Unstable internet connection detected. Retrying in 10 seconds...`n " - ForegroundColor Yellow
3312+ Write-Host " Unstable internet connection detected. Retrying in 10 seconds..." - ForegroundColor Yellow
33093313}
3310- Start-Sleep 10
3314+ Start-Sleep - Seconds 10
33113315}
33123316try {
33133317$Locales = switch ($itt.Locales ) {
0 commit comments