Skip to content

Instantly share code, notes, and snippets.

View adhamali450's full-sized avatar
✔️
Available

Adham Ali adhamali450

✔️
Available
View GitHub Profile
@adhamali450
adhamali450 / AcrylicTappedPage.cs
Created August 2, 2018 17:25
The shared control for the custom tapped page that will implement Acrylic materials
using System;
using System.Collections.Generic;
using System.Text;
using Xamarin.Forms;
using XTournament.Models;
namespace XTournament.CustomControls
{
public class AcrylicTabbedPage : TabbedPage
{
@adhamali450
adhamali450 / AcrylicTappedPageRenderer.cs
Created August 2, 2018 18:18
The renderer that is specifically will implement AcrylicMaterialBrush for the AcrylicTappedPage.cs
using System;
using System.IO;
using System.Threading.Tasks;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Markup;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Media.Imaging;
using Xamarin.Forms.Platform.UWP;
using XTournament.UWP.CustomRenderers;
@adhamali450
adhamali450 / MainPage.xaml
Created August 2, 2018 18:24
The XAML implementation for the AcrylicBrush
<?xml version="1.0" encoding="utf-8" ?>
<customcontrols:AcrylicTabbedPage
xmlns:customcontrols="clr-namespace:XTournament.CustomControls"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:views="clr-namespace:XTournament.Views"
xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core"
x:Class="XTournament.Views.MainPage"
AcrylicSupportForUwp="True"
Title="XTournament"
@adhamali450
adhamali450 / install-all-fonts.py
Last active March 11, 2022 01:38
Python script mimics (install all fonts) feature on Windows for Linux
import os
import re
from shutil import copyfile
import getpass
# Supported font formats. Feel free to customize them!
fontFormats = ('otf', 'ttf', 'eot', 'woff', 'woff2')
# Source directory where the fonts are